<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to rotate and archive hdfs-audit log file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137120#M99769</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I checked the above links but I didn't find how to compress and zip the log file automatically if it reaches the specified MaxFileSize. I need to compress the log files and keep it upto 30days which after then should get deleted automatically. So what are the additional properties should I need to add to make .gz files for hdfs-audit logs??&lt;/P&gt;&lt;P&gt;At present my property is set as:&lt;/P&gt;&lt;PRE&gt;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.RollingFileAppender
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
log4j.appender.DRFAAUDIT.MaxFileSize=1GB
log4j.appender.DRFAAUDIT.MaxBackupIndex=30&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Jan 2017 17:39:50 GMT</pubDate>
    <dc:creator>rburagohain</dc:creator>
    <dc:date>2017-01-20T17:39:50Z</dc:date>
    <item>
      <title>How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137118#M99767</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I want to rotate and archive(in .gz) hdfs-audit log files on size based but after reaching 350KB of size, the file is not getting archived. The properties I have set in hdfs-log4j is:&lt;/P&gt;&lt;PRE&gt;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.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
log4j.appender.DRFAAUDIT=org.apache.log4j.RollingFileAppender
log4j.appender.DRFAAUDIT.File=${hadoop.log.dir}/hdfs-audit.log
log4j.appender.DRFAAUDIT.rollingPolicy.FileNamePattern=hdfs-audit-%d{yyyy-MM}.gz
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
log4j.appender.DRFAAUDIT.MaxFileSize=350KB
log4j.appender.DRFAAUDIT.MaxBackupIndex=9&lt;/PRE&gt;&lt;P&gt;Any help will be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 22:40:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137118#M99767</guid>
      <dc:creator>rburagohain</dc:creator>
      <dc:date>2017-01-19T22:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137119#M99768</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3578/rburagohain.html" nodeid="3578"&gt;@Rahul Buragohain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check - &lt;A href="https://community.hortonworks.com/articles/8882/how-to-control-size-of-log-files-for-various-hdp-c.html" target="_blank"&gt;https://community.hortonworks.com/articles/8882/how-to-control-size-of-log-files-for-various-hdp-c.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It should be set to "RollingFileAppender" to get this working.&lt;/P&gt;&lt;P&gt;Here is good example - &lt;A href="http://apprize.info/security/hadoop/7.html" target="_blank"&gt;http://apprize.info/security/hadoop/7.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 22:45:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137119#M99768</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2017-01-19T22:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137120#M99769</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I checked the above links but I didn't find how to compress and zip the log file automatically if it reaches the specified MaxFileSize. I need to compress the log files and keep it upto 30days which after then should get deleted automatically. So what are the additional properties should I need to add to make .gz files for hdfs-audit logs??&lt;/P&gt;&lt;P&gt;At present my property is set as:&lt;/P&gt;&lt;PRE&gt;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.RollingFileAppender
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
log4j.appender.DRFAAUDIT.MaxFileSize=1GB
log4j.appender.DRFAAUDIT.MaxBackupIndex=30&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:39:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137120#M99769</guid>
      <dc:creator>rburagohain</dc:creator>
      <dc:date>2017-01-20T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137121#M99770</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3578/rburagohain.html" nodeid="3578" target="_blank"&gt;@Rahul Buragohain&lt;/A&gt;&lt;P&gt;It should be RFAAUDIT instead of DRFAAUDIT. Please check screenshot below -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11546-rfa.jpg" style="width: 1173px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21987i797A50FCD528C196/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11546-rfa.jpg" alt="11546-rfa.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:46:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137121#M99770</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2019-08-19T08:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137122#M99771</link>
      <description>&lt;P&gt;Please check link for more details -&lt;A href="http://apprize.info/security/hadoop/7.html"&gt;http://apprize.info/security/hadoop/7.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 21:47:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137122#M99771</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2017-01-20T21:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137123#M99772</link>
      <description>&lt;P&gt;Hi Team and &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The below steps helped me to resolve the issue.&lt;/P&gt;&lt;P&gt;1) As I am using HDP-2.4.2, so I need to download the jar from &lt;A href="http://www.apache.org/dyn/closer.cgi/logging/log4j/extras/1.2.17/apache-log4j-extras-1.2.17-bin.tar.gz" target="_blank"&gt;http://www.apache.org/dyn/closer.cgi/logging/log4j/extras/1.2.17/apache-log4j-extras-1.2.17-bin.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Extract the tar file and copy apache-log4j-extras-1.2.17.jar to &lt;STRONG&gt;ALL &lt;/STRONG&gt;the cluster nodes in /usr/hdp/&amp;lt;version&amp;gt;/hadoop-hdfs/lib location.&lt;/P&gt;&lt;P&gt;Note: Also you can find apache-log4j-extras-1.2.17.jar in /usr/hdp/&amp;lt;version&amp;gt;/hive/lib folder. I found it later.&lt;/P&gt;&lt;P&gt;3) Then edit in advanced hdfs-log4j property from ambari and replace the default hdfs-audit log4j properties as&lt;/P&gt;&lt;PRE&gt;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.rolling.RollingFileAppender
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: %m%
log4j.appender.DRFAAUDIT.rollingPolicy=org.apache.log4j.rolling.FixedWindowRollingPolicy
log4j.appender.DRFAAUDIT.rollingPolicy.maxIndex=30
log4j.appender.DRFAAUDIT.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
log4j.appender.DRFAAUDIT.triggeringPolicy.MaxFileSize=16106127360
## The figure 16106127360 is in bytes which is equal to 15GB ##
log4j.appender.DRFAAUDIT.rollingPolicy.ActiveFileName=${hadoop.log.dir}/hdfs-audit.log
log4j.appender.DRFAAUDIT.rollingPolicy.FileNamePattern=${hadoop.log.dir}/hdfs-audit-%i.log.gz
&lt;/PRE&gt;&lt;P&gt;The output of the hdfs audit log files in .gz are:&lt;/P&gt;&lt;PRE&gt;-rw-r--r-- 1 hdfs hadoop 384M Jan 28 23:51 hdfs-audit-2.log.gz
-rw-r--r-- 1 hdfs hadoop 347M Jan 29 07:40 hdfs-audit-1.log.gz&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Jan 2017 17:04:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137123#M99772</guid>
      <dc:creator>rburagohain</dc:creator>
      <dc:date>2017-01-29T17:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137124#M99773</link>
      <description>&lt;P&gt;Can you  confirm if the below settings have achieved the purpose in subject?&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;hdfs.audit.logger=INFO,console&lt;/LI&gt;&lt;LI&gt;log4j.logger.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=${hdfs.audit.logger}&lt;/LI&gt;&lt;LI&gt;log4j.additivity.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=false&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT=org.apache.log4j.rolling.RollingFileAppender&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.File=${hadoop.log.dir}/hdfs-audit.log&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.layout=org.apache.log4j.PatternLayout&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.layout.ConversionPattern=%d{ISO8601}%p %c:%m%&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.rollingPolicy=org.apache.log4j.rolling.FixedWindowRollingPolicy&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.rollingPolicy.maxIndex=30&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.triggeringPolicy.MaxFileSize=16106127360&lt;/LI&gt;&lt;LI&gt;## The figure 16106127360 is in bytes which is equal to 15GB ##&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.rollingPolicy.ActiveFileName=${hadoop.log.dir}/hdfs-audit.log&lt;/LI&gt;&lt;LI&gt;log4j.appender.DRFAAUDIT.rollingPolicy.FileNamePattern=${hadoop.log.dir}/hdfs-audit-%i.log.gz&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 01 Jun 2017 16:57:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137124#M99773</guid>
      <dc:creator>sireesha_puppal</dc:creator>
      <dc:date>2017-06-01T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137125#M99774</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18725/sireeshapuppala.html" nodeid="18725"&gt;@English Rose
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes I confirm that the settings which I mentioned is working properly.
&lt;A rel="user" href="https://community.cloudera.com/users/18725/sireeshapuppala.html" nodeid="18725"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:17:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137125#M99774</guid>
      <dc:creator>rburagohain</dc:creator>
      <dc:date>2017-06-01T17:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137126#M99775</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3578/rburagohain.html" nodeid="3578"&gt;@Rahul Buragohain&lt;/A&gt; few more clarifications pls&lt;/P&gt;&lt;P&gt;1. If i want to avoid the 30 day limit I should not be using FixedWindowRollingPolicy/max Index and SizeBasedTriggeringPolic/Max file size  if am correct? &lt;/P&gt;&lt;P&gt;2. I know am being a bit greedy here, do you know of any other inbuilt process to archive/move the  the zipped logs to HDFS/other location instead of deleting them(yes I can write a script , but checking if I am missing on any existing appenders/policies &lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:38:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137126#M99775</guid>
      <dc:creator>sireesha_puppal</dc:creator>
      <dc:date>2017-06-01T17:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137127#M99776</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3578/rburagohain.html" nodeid="3578"&gt;@Rahul Buragohain&lt;/A&gt; also could you please explain about rolling.RollingFileAppender?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 18:46:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137127#M99776</guid>
      <dc:creator>sireesha_puppal</dc:creator>
      <dc:date>2017-06-01T18:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137128#M99777</link>
      <description>&lt;P&gt;Hi i am trying to get the gip audit hdfs logs . I am getting the logs for every hour but they are not in .gz ?  may i know if i need to correct something . and if you can provide some explanation on it , i would really appreciate your help:&lt;/P&gt;&lt;P&gt;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-HH
log4j.appender.DRFAAUDIT.rollingPolicy=org.apache.log4j.rolling.FixedWindowRollingPolicy
log4j.appender.DRFAAUDIT.rollingPolicy.maxIndex=2
log4j.appender.DRFAAUDIT.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
log4j.appender.DRFAAUDIT.triggeringPolicy.MaxFileSize=500MB
log4j.appender.DRFAAUDIT.rollingPolicy.ActiveFileName=${hadoop.log.dir}/hdfs-audit.log
log4j.appender.DRFAAUDIT.rollingPolicy.FileNamePattern=${hadoop.log.dir}/hdfs-audit-%i.log.gz&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 04:20:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137128#M99777</guid>
      <dc:creator>hadoop2spark</dc:creator>
      <dc:date>2017-08-14T04:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137129#M99778</link>
      <description>&lt;P&gt;will the log4j configuration be reflected automatically?&lt;BR /&gt;or do i need to restart the process&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 09:49:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137129#M99778</guid>
      <dc:creator>remfight</dc:creator>
      <dc:date>2019-01-24T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate and archive hdfs-audit log file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137130#M99779</link>
      <description>&lt;P&gt;i did following changes,but hdfs-audit logs are not rotating,&lt;/P&gt;&lt;P&gt;hdfs.audit.logger=INFO,console&lt;/P&gt;&lt;P&gt;log4j.logger.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=${hdfs.audit.logger}&lt;/P&gt;&lt;P&gt;log4j.additivity.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=false&lt;/P&gt;&lt;P&gt;#log4j.appender.DRFAAUDIT=org.apache.log4j.DailyRollingFileAppender&lt;/P&gt;&lt;P&gt;log4j.appender.DRFAAUDIT=org.apache.log4j.RollingFileAppender&lt;/P&gt;&lt;P&gt;log4j.appender.DRFAAUDIT.File=${hadoop.log.dir}/hdfs-audit.log&lt;/P&gt;&lt;P&gt;log4j.appender.DRFAAUDIT.layout=org.apache.log4j.PatternLayout&lt;/P&gt;&lt;P&gt;log4j.appender.DRFAAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %m%n&lt;/P&gt;&lt;P&gt;log4j.appender.DRFAAUDIT.DatePattern=.yyyy-MM-dd&lt;/P&gt;&lt;P&gt;log4j.appender.DRFAAUDIT.MaxFileSize=100MB&lt;/P&gt;&lt;P&gt;log4j.appender.DRFAAUDIT.MaxBackupIndex=5&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 22:54:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-rotate-and-archive-hdfs-audit-log-file/m-p/137130#M99779</guid>
      <dc:creator>Nik94</dc:creator>
      <dc:date>2019-04-16T22:54:36Z</dc:date>
    </item>
  </channel>
</rss>

