Created 05-04-2017 12:45 PM
Hi,
How can I disable the logging for the HDFS Audit log? My current config:
hdfs.audit.logger=INFO,console log4j.logger.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=${hdfs.audit.logger} log4j.additivity.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=false log4j.appender.DRFAAUDIT=org.apache.log4j.DailyRollingFileAppender log4j.appender.DRFAAUDIT.File=${hadoop.log.dir}/hdfs-audit.log log4j.appender.DRFAAUDIT.layout=org.apache.log4j.PatternLayout log4j.appender.DRFAAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %m%n log4j.appender.DRFAAUDIT.DatePattern=.yyyy-MM-dd
Created 05-04-2017 01:01 PM
Want to get a detailed solution you have to login/registered on the community
Register/LoginCreated 05-04-2017 01:01 PM
Want to get a detailed solution you have to login/registered on the community
Register/LoginCreated 05-04-2017 01:06 PM
excellent, thx!
Created 05-08-2017 02:56 PM
@Ward Bekker we don't recommend disabling HDFS audit logging. It's hard to debug many HDFS issues without the audit log. Just curious, why would you like to disable it?
Created 05-08-2017 02:59 PM
@Arpit Agarwal good point. The customer uses ranger audit logging. What extra information is in the hdfs audit log, what is not already in the ranger audit logs.
Created 05-22-2017 08:39 PM
Sorry I missed the notification of your reply. That is also a good question. I have not yet come across a customer setup where HDFS audit logging is disabled and Ranger audit logs is on.
I'd recommend tagging someone from Ranger to make sure.
Created 05-18-2018 04:01 PM
In my experience, if you remove the indicated flags, you still get audit logging - but those logs never get purged.
Perhaps it would be better to leave the flags, but to change "INFO" to "OFF", rendering something like:
-Dhdfs.audit.logger=OFF,DRFAAUDIT"
?