<?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>topic Re: Splunk Web login user IP address correlation? in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-Web-login-user-IP-address-correlation/m-p/42542#M1420</link>
    <description>&lt;P&gt;Something like this should work:&lt;/P&gt;

&lt;P&gt;index=_audit action="login attempt" info="succeeded"  | JOIN type=left date_year date_month date_mday date_hour date_minute date_second [ search index=_internal "POST /en-US/account/login HTTP/1.1" | fields date_year date_month date_mday date_hour date_minute date_second clientip] | eval newfield = if(isnull(clientip), 1, 0) | search newfield=0 | table clientip user _time&lt;/P&gt;

&lt;P&gt;It will print a table with information you need.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2010 20:14:06 GMT</pubDate>
    <dc:creator>bojanz</dc:creator>
    <dc:date>2010-09-02T20:14:06Z</dc:date>
    <item>
      <title>Splunk Web login user IP address correlation?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Web-login-user-IP-address-correlation/m-p/42541#M1419</link>
      <description>&lt;P&gt;Hi, there seems to be no IP address form where user logged to Splunk Web in _audit index. I've tried to correlate events from _audit and _internal indexes based on timestamp, but have a problem with table creation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="login attempt" info="succeeded"  | JOIN type=left date_year date_month date_mday date_hour date_minute date_second [ search index=_internal "POST /en-US/account/login HTTP/1.1"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search merges user and clientip fields in one event and I can see them in results, but when I try to show just two fields, or make them into table it shows just clientip or just user fields and other is empty.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="login attempt" info="succeeded"  | JOIN type=left date_year date_month date_mday date_hour date_minute date_second [ search index=_internal "POST /en-US/account/login HTTP/1.1"] | fields + user clientip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="login attempt" info="succeeded"  | JOIN type=left date_year date_month date_mday date_hour date_minute date_second [ search index=_internal "POST /en-US/account/login HTTP/1.1"] | table user clientip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 19:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Web-login-user-IP-address-correlation/m-p/42541#M1419</guid>
      <dc:creator>gljiva</dc:creator>
      <dc:date>2010-09-02T19:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Web login user IP address correlation?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Web-login-user-IP-address-correlation/m-p/42542#M1420</link>
      <description>&lt;P&gt;Something like this should work:&lt;/P&gt;

&lt;P&gt;index=_audit action="login attempt" info="succeeded"  | JOIN type=left date_year date_month date_mday date_hour date_minute date_second [ search index=_internal "POST /en-US/account/login HTTP/1.1" | fields date_year date_month date_mday date_hour date_minute date_second clientip] | eval newfield = if(isnull(clientip), 1, 0) | search newfield=0 | table clientip user _time&lt;/P&gt;

&lt;P&gt;It will print a table with information you need.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 20:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Web-login-user-IP-address-correlation/m-p/42542#M1420</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2010-09-02T20:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Web login user IP address correlation?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Web-login-user-IP-address-correlation/m-p/42543#M1421</link>
      <description>&lt;P&gt;I have noticed some problems with this approach, apparently some logins will not be matched even if they have same time. Is there some better approach or is there some bug in the logic.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 21:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Web-login-user-IP-address-correlation/m-p/42543#M1421</guid>
      <dc:creator>gljiva</dc:creator>
      <dc:date>2010-09-02T21:56:30Z</dc:date>
    </item>
  </channel>
</rss>

