<?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 HDFS audit log in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-audit-log/m-p/164420#M53697</link>
    <description>&lt;P&gt;Is there a reason why there is a forward slash "/" in the "ip" field in front of the real IP Address in hdfs-audit.log?&lt;/P&gt;&lt;P&gt;2017-01-27 00:00:01,300 INFO FSNamesystem.audit: allowed=true   ugi=SOMETHING.COM (auth:KERBEROS)   ip=&lt;STRONG&gt;/&lt;/STRONG&gt;172.22.7.129      cmd=listStatus    src=/apps/hbase/data/archive/data/default/ambarismoketest       dst=null        perm=null       proto=rpc       callerContext=CLI&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:02:19 GMT</pubDate>
    <dc:creator>sbmaillist</dc:creator>
    <dc:date>2022-09-16T11:02:19Z</dc:date>
    <item>
      <title>HDFS audit log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-audit-log/m-p/164420#M53697</link>
      <description>&lt;P&gt;Is there a reason why there is a forward slash "/" in the "ip" field in front of the real IP Address in hdfs-audit.log?&lt;/P&gt;&lt;P&gt;2017-01-27 00:00:01,300 INFO FSNamesystem.audit: allowed=true   ugi=SOMETHING.COM (auth:KERBEROS)   ip=&lt;STRONG&gt;/&lt;/STRONG&gt;172.22.7.129      cmd=listStatus    src=/apps/hbase/data/archive/data/default/ambarismoketest       dst=null        perm=null       proto=rpc       callerContext=CLI&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:02:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-audit-log/m-p/164420#M53697</guid>
      <dc:creator>sbmaillist</dc:creator>
      <dc:date>2022-09-16T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS audit log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-audit-log/m-p/164421#M53698</link>
      <description>&lt;P&gt;Very good question! Let's dig into Hadoop's source to find this out.&lt;/P&gt;&lt;P&gt;The audit log uses java.net.InetAddress's toString() method to obtain a text format of the address:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java#L7049" target="_blank"&gt;https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java#L7049&lt;/A&gt;&lt;/P&gt;&lt;P&gt;InetAddress's returns the information in "hostname/ip" format. If the hostname is not resolvable (reverse lookup is not working) then you get a starting slash:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#toString()" target="_blank"&gt;http://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#toString()&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:53:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-audit-log/m-p/164421#M53698</guid>
      <dc:creator>tkiss</dc:creator>
      <dc:date>2017-02-08T13:53:29Z</dc:date>
    </item>
  </channel>
</rss>

