<?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 Need to pull IP from Message field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559816#M159062</link>
    <description>&lt;P&gt;Hey all, I'm trying to separate out the IP address (Source Network Address:) from the Windows event Message field. I'm trying to find every instance of authentication for a certain user acct (including services &amp;amp; IIS app pools), but I'm having to parse it from the logs I'm getting from our Domain controllers.&lt;/P&gt;&lt;P&gt;I'm pretty new to Splunk so my search is fairly basic. This is all I have so far, and I haven't been able to find info on whether that rex field should equal the new field I'm trying to create, or the field I'm searching, or what:&lt;/P&gt;&lt;P&gt;index=* user=username EventCode=4740 OR EventCode=4648 OR EventCode=4672 OR EventCode=4624 | rex field=ServerIP "Source Network Address:(?&amp;lt;Message&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"&lt;/P&gt;&lt;P&gt;So what I'm trying to do:&lt;/P&gt;&lt;P&gt;Search Windows event log "Message" field &amp;gt; Find string "Source Network Address:ipaddress"&lt;/P&gt;&lt;P&gt;Create new field with Value being above IP address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 14:40:39 GMT</pubDate>
    <dc:creator>radalliance</dc:creator>
    <dc:date>2021-07-16T14:40:39Z</dc:date>
    <item>
      <title>Need to pull IP from Message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559816#M159062</link>
      <description>&lt;P&gt;Hey all, I'm trying to separate out the IP address (Source Network Address:) from the Windows event Message field. I'm trying to find every instance of authentication for a certain user acct (including services &amp;amp; IIS app pools), but I'm having to parse it from the logs I'm getting from our Domain controllers.&lt;/P&gt;&lt;P&gt;I'm pretty new to Splunk so my search is fairly basic. This is all I have so far, and I haven't been able to find info on whether that rex field should equal the new field I'm trying to create, or the field I'm searching, or what:&lt;/P&gt;&lt;P&gt;index=* user=username EventCode=4740 OR EventCode=4648 OR EventCode=4672 OR EventCode=4624 | rex field=ServerIP "Source Network Address:(?&amp;lt;Message&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"&lt;/P&gt;&lt;P&gt;So what I'm trying to do:&lt;/P&gt;&lt;P&gt;Search Windows event log "Message" field &amp;gt; Find string "Source Network Address:ipaddress"&lt;/P&gt;&lt;P&gt;Create new field with Value being above IP address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559816#M159062</guid>
      <dc:creator>radalliance</dc:creator>
      <dc:date>2021-07-16T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull IP from Message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559820#M159063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236504"&gt;@radalliance&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are you sure that you already haven't that field? I have in my logs with the field name "IpAddress"&lt;/P&gt;&lt;P&gt;Anyway, with this regex I'm able to extract it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;IP&amp;gt;\d+\.\d+\.\d+\.\d+)"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559820#M159063</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-07-16T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull IP from Message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559828#M159068</link>
      <description>&lt;P&gt;Perfect, thank you. Removed the extra eventID search and was able to return just what I needed with the following:&lt;/P&gt;&lt;P&gt;index=* user=username | rex "(?&amp;lt;IP&amp;gt;\d+\.\d+\.\d+\.\d+)" | stats count by IP | lookup dnslookup clientip as IP OUTPUT clienthost as host | sort - count | table IP, host, count | fields "IP", "host", "count"&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559828#M159068</guid>
      <dc:creator>radalliance</dc:creator>
      <dc:date>2021-07-16T15:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull IP from Message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559829#M159069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236504"&gt;@radalliance&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe.&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-IP-from-Message-field/m-p/559829#M159069</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-07-16T15:19:48Z</dc:date>
    </item>
  </channel>
</rss>

