<?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: Ranger audit logs  copy to a local folder in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113140#M75941</link>
    <description>&lt;P&gt;@Ramesh Mani @bdurai There is something missing. &lt;/P&gt;&lt;P&gt;I applied the indicated properties on HDP Sandbox via ambari and restarted the components and I immediately see the file created (zero length).&lt;/P&gt;&lt;P&gt;Run some queries from Beeline, and the file is never appended !!! (and new ones created either).&lt;/P&gt;&lt;P&gt;I changed the date pattern to do it every minute (fragment from "Advanced hive-log4j" in ambari):&lt;/P&gt;&lt;P&gt;ranger.logger=INFO,console,RANGERAUDIT log4j.logger.xaaudit=${ranger.logger} log4j.appender.RANGERAUDIT=org.apache.log4j.DailyRollingFileAppender log4j.appender.RANGERAUDIT.File=/tmp/ranger_hdfs_audit.log log4j.appender.RANGERAUDIT.layout=org.apache.log4j.PatternLayout log4j.appender.RANGERAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %L %m%n log4j.appender.RANGERAUDIT.DatePattern='.'yyyy-MM-dd-HH-mm&lt;/P&gt;&lt;P&gt;Has anybody tried this configuration ?&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2016 01:25:18 GMT</pubDate>
    <dc:creator>luis_marmolejo</dc:creator>
    <dc:date>2016-06-04T01:25:18Z</dc:date>
    <item>
      <title>Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113133#M75934</link>
      <description>&lt;P&gt;Ranger Audit logs for Hive/HDFS currently go to an HDFS folder. Format is json.&lt;/P&gt;&lt;P&gt;Is it possible to fork out a second copy to a (local) directory that gets cleaned in a short window (24 hr).?&lt;/P&gt;&lt;P&gt;How?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:00:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113133#M75934</guid>
      <dc:creator>luis_marmolejo</dc:creator>
      <dc:date>2016-06-01T09:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113134#M75935</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/36868/ranger-audit-logs-copy-to-a-local-folder.html#"&gt;@luis marmolejo&lt;/A&gt;, please see this article.  It has a great breakdown of the Ranger audit framework.  &lt;A href="http://hortonworks.com/blog/apache-ranger-audit-framework/" target="_blank"&gt;http://hortonworks.com/blog/apache-ranger-audit-framework/&lt;/A&gt;  The parameter you want is XAAUDIT.HDFS.LOCAL_ARCHIVE_DIRECTORY.  This is the local directory where the audit log will be archived after it is moved to hdfs.  I do not see any parameters to control periodic flushing of this directory.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:16:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113134#M75935</guid>
      <dc:creator>ceverett</dc:creator>
      <dc:date>2016-06-01T09:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113135#M75936</link>
      <description>&lt;P&gt;Has this property been deleted or renamed in HDP 2.3?&lt;/P&gt;&lt;P&gt;There is the following props:&lt;/P&gt;&lt;P&gt;xasecure.audit.destination.db.batch.filespool.dir&lt;/P&gt;&lt;P&gt;xasecure.audit.destination.hdfs.batch.filespool.dir&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 01:31:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113135#M75936</guid>
      <dc:creator>luis_marmolejo</dc:creator>
      <dc:date>2016-06-02T01:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113136#M75937</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10728/luis-marmolejo.html" nodeid="10728"&gt;@luis marmolejo&lt;/A&gt; You can conifgure Ranger Audit to go to Log4J appender. In this way a copy can be sent to file as you needed. Configure these properties via Ambari for the respective components if you are using Ambari for managing.&lt;/P&gt;&lt;P&gt;1 ) You need to enable auditing to log4j appender by adding the following property to ranger-&amp;lt;component&amp;gt;-audit.xml &lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;xasecure.audit.log4j.is.enabled&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;xasecure.audit.destination.log4j&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;xasecure.audit.destination.log4j.logger&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;xaaudit&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;2) Add the appender to the log4j.properties or log4j.xml file for the &amp;lt;component&amp;gt;&lt;/P&gt;&lt;P&gt;ranger.logger=INFO,console,RANGERAUDIT&lt;/P&gt;&lt;P&gt;log4j.logger.xaaudit=${ranger.logger}&lt;/P&gt;&lt;P&gt;log4j.appender.RANGERAUDIT=org.apache.log4j.DailyRollingFileAppender&lt;/P&gt;&lt;P&gt;log4j.appender.RANGERAUDIT.File=/tmp/ranger_hdfs_audit.log&lt;/P&gt;&lt;P&gt;log4j.appender.RANGERAUDIT.layout=org.apache.log4j.PatternLayout&lt;/P&gt;&lt;P&gt;log4j.appender.RANGERAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %L %m%n &lt;/P&gt;&lt;P&gt;log4j.appender.RANGERAUDIT.DatePattern=.yyyy-MM-dd&lt;/P&gt;&lt;P&gt;restart the respective component.&lt;/P&gt;&lt;P&gt;A copy of the Ranger Audit will be sent to /tmp/ranger_hdfs_audit.log ( in this case ) &lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 02:09:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113136#M75937</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-06-03T02:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113137#M75938</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt;, do we have references to enable this via Ambari? If we manually modify the config file, it will be overwritten next time Ambari restarts Ranger. This is assuming Ambari is used to manage the cluster.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 02:21:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113137#M75938</guid>
      <dc:creator>bdurai</dc:creator>
      <dc:date>2016-06-03T02:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113138#M75939</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/603/ceverett.html" nodeid="603"&gt;@Carter Everett&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/10728/luis-marmolejo.html" nodeid="10728"&gt;@luis marmolejo&lt;/A&gt;, the audit implementation has changed HDP 2.3 onwards. Previously the audits were written to local file and copied over to HDFS. From HDP 2.3 onwards, the audits are streamed directly to HDFS. It is written to the local spool folder only if the destination is not available.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 02:25:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113138#M75939</guid>
      <dc:creator>bdurai</dc:creator>
      <dc:date>2016-06-03T02:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113139#M75940</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/229/bdurai.html" nodeid="229"&gt;@bdurai&lt;/A&gt;&lt;P&gt; I dont see an internal reference for this. We need to create one. &lt;/P&gt;&lt;P&gt;Your are right. we need to do the configuration changes via Amabri for respective components if Ambari is used.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 02:39:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113139#M75940</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-06-03T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113140#M75941</link>
      <description>&lt;P&gt;@Ramesh Mani @bdurai There is something missing. &lt;/P&gt;&lt;P&gt;I applied the indicated properties on HDP Sandbox via ambari and restarted the components and I immediately see the file created (zero length).&lt;/P&gt;&lt;P&gt;Run some queries from Beeline, and the file is never appended !!! (and new ones created either).&lt;/P&gt;&lt;P&gt;I changed the date pattern to do it every minute (fragment from "Advanced hive-log4j" in ambari):&lt;/P&gt;&lt;P&gt;ranger.logger=INFO,console,RANGERAUDIT log4j.logger.xaaudit=${ranger.logger} log4j.appender.RANGERAUDIT=org.apache.log4j.DailyRollingFileAppender log4j.appender.RANGERAUDIT.File=/tmp/ranger_hdfs_audit.log log4j.appender.RANGERAUDIT.layout=org.apache.log4j.PatternLayout log4j.appender.RANGERAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %L %m%n log4j.appender.RANGERAUDIT.DatePattern='.'yyyy-MM-dd-HH-mm&lt;/P&gt;&lt;P&gt;Has anybody tried this configuration ?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 01:25:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113140#M75941</guid>
      <dc:creator>luis_marmolejo</dc:creator>
      <dc:date>2016-06-04T01:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113141#M75942</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10728/luis-marmolejo.html" nodeid="10728"&gt;@luis marmolejo&lt;/A&gt; Please check the permission of the file /tmp/ranger_hdfs_audit.log. Make sure it has rw permission for all others also. This is working fine.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 07:32:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113141#M75942</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-06-04T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113142#M75943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do we have any solution to the config file &lt;EM&gt;&lt;STRONG&gt;/etc/hadoop/conf/ranger-hdfs-audit.xml &lt;/STRONG&gt;being overwritten by Ambari?&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We are manually updating the file can we add the following configuration properties to Ambari?&lt;/P&gt;&lt;PRE&gt; &amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;xasecure.audit.log4j.is.enabled&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;xasecure.audit.destination.log4j&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;xasecure.audit.destination.log4j.logger&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;xaaudit&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt; &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;A rel="user" href="https://community.cloudera.com/users/229/bdurai.html" nodeid="229"&gt;@Don Bosco Durai&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 14:53:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113142#M75943</guid>
      <dc:creator>calvin_pieterse</dc:creator>
      <dc:date>2017-03-20T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113143#M75944</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/36868/ranger-audit-logs-copy-to-a-local-folder.html#"&gt;@Calvin Pietersen&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You can add the properties under "Custom ranger-hdfs-audit" section in Ambari &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/13903-custom-audit.png"&gt;custom-audit.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 18:35:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113143#M75944</guid>
      <dc:creator>ssanthosh</dc:creator>
      <dc:date>2017-03-22T18:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113144#M75945</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/36868/ranger-audit-logs-copy-to-a-local-folder.html#"&gt;@Ramesh Mani&lt;/A&gt; , &lt;A rel="user" href="https://community.cloudera.com/users/603/ceverett.html" nodeid="603"&gt;@Carter Everett&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am trying to send HDFS Ranger Audit logs to kafka via Log4j. I am using HDP 2.5 Sandbox where I have Ranger 0.6 and kafka 0.10.0.1.&lt;/P&gt;&lt;P&gt;I have added the below in Custom ranger_hdfs_audit using Ambari&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;xasecure.audit.destination.log4j=true&lt;/LI&gt;&lt;LI&gt;xasecure.audit.log4j.is.enabled&lt;/LI&gt;&lt;LI&gt;xasecure.audit.destination.log4j.logger=xaaudit&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have also added the below in Advanced hdfs-log4j using Ambari&lt;/P&gt;&lt;P&gt;#Kafka Appender&lt;/P&gt;&lt;P&gt;ranger.logger=INFO,console,KAFKA&lt;/P&gt;&lt;P&gt;log4j.logger.xaaudit=${ranger.logger}&lt;/P&gt;&lt;P&gt;log4j.appender.KAFKA=org.apache.kafka.log4jappender.KafkaLog4jAppender log4j.appender.KAFKA.layout=org.apache.log4j.PatternLayout&lt;/P&gt;&lt;P&gt;log4j.appender.KAFKA.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L %% - %m%n log4j.appender.KAFKA.BrokerList=&lt;A href="http://sandbox.hortonworks.com/"&gt;sandbox.hortonworks.com&lt;/A&gt;:6667&lt;/P&gt;&lt;P&gt;log4j.appender.KAFKA.Topic=HDFS_AUDIT_LOG&lt;/P&gt;&lt;P&gt;log4j.appender.KAFKA.ProducerType=sync&lt;/P&gt;&lt;P&gt;and then restarted HDFS (namenode, Datanode and other dependencies) But now when i do a hdfs dfs -ls / , I get the below error:&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# hdfs dfs -ls / log4j:ERROR Could not instantiate class [org.apache.kafka.log4jappender.KafkaLog4jAppender]. java.lang.ClassNotFoundException: org.apache.kafka.log4jappender.KafkaLog4jAppender at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.apache.log4j.helpers.Loader.loadClass(Loader.java:198) at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:327) at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:124) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:785) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768) at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) at org.apache.log4j.LogManager.&amp;lt;clinit&amp;gt;(LogManager.java:127) at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:262) at org.apache.commons.logging.impl.Log4JLogger.&amp;lt;init&amp;gt;(Log4JLogger.java:108) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1025) at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:790) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657) at org.apache.hadoop.fs.FsShell.&amp;lt;clinit&amp;gt;(FsShell.java:43) log4j:ERROR Could not instantiate appender named "KAFKA".&lt;/P&gt;&lt;P&gt;Found 12 items&lt;/P&gt;&lt;P&gt;drwxrwxrwx - yarn hadoop 0 2016-10-25 08:10 /app-logs&lt;/P&gt;&lt;P&gt;drwxr-xr-x - hdfs hdfs 0 2016-10-25 07:54 /apps&lt;/P&gt;&lt;P&gt;drwxr-xr-x - yarn hadoop 0 2016-10-25 07:48 /ats&lt;/P&gt;&lt;P&gt;drwxr-xr-x - hdfs hdfs 0 2016-10-25 08:01 /demo and so on ....&lt;/P&gt;&lt;P&gt;Could you please help me on this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu Sure.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 20:46:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113144#M75945</guid>
      <dc:creator>vishz</dc:creator>
      <dc:date>2017-09-29T20:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113145#M75946</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt;&lt;P&gt;Is it possible to copy the ranger audit logs on to different server which is in the same network but outside of the cluster? &lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 22:59:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113145#M75946</guid>
      <dc:creator>raghu9raghavend</dc:creator>
      <dc:date>2018-03-21T22:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit logs  copy to a local folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113146#M75947</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/47/vperiasamy.html" nodeid="47"&gt;@vperiasamy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ramesh I made the above changes. I got 6 diff logs in the /ranger/audit/hdfs/ directory in hdfs.&lt;/P&gt;&lt;P&gt;and also  I'm unable to see the content in those log files --- I pasted the cat output of the log file. &lt;/P&gt;&lt;P&gt;Can you help me on this&lt;/P&gt;&lt;P&gt; hdfs dfs -cat /ranger/audit/hdfs/20180326/hdfs_ranger_audit_instance-1.c.neat-pagoda-198122.internal.1.log&lt;/P&gt;&lt;P&gt; cat: Cannot obtain block length for LocatedBlock{BP-211226024-10.224.60.23-1481061235494:blk_1091267231_17616185; getBlockSize()=1483776; corrupt=false; offset=0; locs=[DatanodeInfoWithStorage[10.224.60.21:50010,DS-d9d6b48a-2212-4529-a719-827215e3967a,DISK], DatanodeInfoWithStorage[10.224.60.22:50010,DS-04f30f6e-20b7-48af-9872-7d2782dff0ad,DISK], DatanodeInfoWithStorage[10.224.60.52:50010,DS-3f1ae50a-9ade-419f-9b39-fa3ac1d4f308,DISK]]}&lt;/P&gt;&lt;P&gt;hdfs@instance-1 ~]$ hdfs dfs -ls /ranger/audit/hdfs/20180326&lt;/P&gt;&lt;PRE&gt;Found 6 items
-rw-r--r--   3 hdfs hdfs    1419264 2018-03-26 23:56 /ranger/audit/hdfs/20180326/hdfs_ranger_audit_instance-1.c.neat-pagoda-198122.internal.1.log
-rw-r--r--   3 hdfs hdfs       1894 2018-03-26 22:44 /ranger/audit/hdfs/20180326/hdfs_ranger_audit_instance-1.c.neat-pagoda-198122.internal.2.log
-rw-r--r--   3 hdfs hdfs      59252 2018-03-26 22:56 /ranger/audit/hdfs/20180326/hdfs_ranger_audit_instance-1.c.neat-pagoda-198122.internal.3.log
-rw-r--r--   3 hdfs hdfs     580608 2018-03-27 00:59 /ranger/audit/hdfs/20180326/hdfs_ranger_audit_instance-1.c.neat-pagoda-198122.internal.4.log
-rw-r--r--   3 hdfs hdfs      29635 2018-03-26 23:58 /ranger/audit/hdfs/20180326/hdfs_ranger_audit_instance-1.c.neat-pagoda-198122.internal.5.log
-rw-r--r--   3 hdfs hdfs     193536 2018-03-26 17:43 /ranger/audit/hdfs/20180326/hdfs_ranger_audit_instance-1.c.neat-pagoda-198122.internal.log&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Mar 2018 00:23:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-audit-logs-copy-to-a-local-folder/m-p/113146#M75947</guid>
      <dc:creator>raghu9raghavend</dc:creator>
      <dc:date>2018-03-28T00:23:35Z</dc:date>
    </item>
  </channel>
</rss>

