<?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: extract source_ip in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-source-ip/m-p/81998#M20799</link>
    <description>&lt;P&gt;Thank you. That fixed it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2011 00:02:36 GMT</pubDate>
    <dc:creator>tven7</dc:creator>
    <dc:date>2011-09-28T00:02:36Z</dc:date>
    <item>
      <title>extract source_ip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-source-ip/m-p/81996#M20797</link>
      <description>&lt;P&gt;i have the following jboss http log entry&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;00.00.00.253 11.11.111.111 [27/Sep/2011:00:45:31 -0700] GET /xyz/images/spacer.png HTTP/1.1 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB7.1; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET CLR 3.0.30729)' 200 153 0

rex ="[\d+\.]+\s(?P&amp;lt;source_ip&amp;gt;[\d+\.]+)\s\[\d+"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I already tried specifying sourcetype as access_combined. splunk does not want to recognize the format correctly. So i am forced to extract with regex.&lt;/P&gt;

&lt;P&gt;this wont work right for some reason and i cant extract source_ip. I am going after the 2nd ip on the line. what am i doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 07:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-source-ip/m-p/81996#M20797</guid>
      <dc:creator>tven7</dc:creator>
      <dc:date>2011-09-27T07:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: extract source_ip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-source-ip/m-p/81997#M20798</link>
      <description>&lt;P&gt;Try removing the '=' before your regex. The rex command syntax is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex [field=&amp;lt;field&amp;gt;] (&amp;lt;regex-expression&amp;gt; [max_match=&amp;lt;int&amp;gt;] | mode=sed &amp;lt;sed-expression&amp;gt;)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hence&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "[\d+\.]+\s(?P&amp;lt;source_ip&amp;gt;[\d+\.]+)\s\[\d+"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2011 14:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-source-ip/m-p/81997#M20798</guid>
      <dc:creator>cnk</dc:creator>
      <dc:date>2011-09-27T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: extract source_ip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-source-ip/m-p/81998#M20799</link>
      <description>&lt;P&gt;Thank you. That fixed it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 00:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-source-ip/m-p/81998#M20799</guid>
      <dc:creator>tven7</dc:creator>
      <dc:date>2011-09-28T00:02:36Z</dc:date>
    </item>
  </channel>
</rss>

