<?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: how to write the regular expression for my statement? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317549#M94981</link>
    <description>&lt;P&gt;thank for the information adayton and i tried with above search and not receiving any value under the External.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 12:40:37 GMT</pubDate>
    <dc:creator>lksridhar</dc:creator>
    <dc:date>2017-02-24T12:40:37Z</dc:date>
    <item>
      <title>how to write the regular expression for my statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317547#M94979</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;

&lt;P&gt;could you please anyone help me to write the regex for below statement and need extract the external value from below logs.&lt;/P&gt;

&lt;P&gt;EXTERNAL:10.23.9.121/587327&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 11:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317547#M94979</guid>
      <dc:creator>lksridhar</dc:creator>
      <dc:date>2017-02-24T11:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the regular expression for my statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317548#M94980</link>
      <description>&lt;P&gt;Give this a try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=_raw "EXTERNAL\:(?P&amp;lt;EXTERNAL&amp;gt;.[^\s]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Feb 2017 12:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317548#M94980</guid>
      <dc:creator>adayton20</dc:creator>
      <dc:date>2017-02-24T12:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the regular expression for my statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317549#M94981</link>
      <description>&lt;P&gt;thank for the information adayton and i tried with above search and not receiving any value under the External.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 12:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317549#M94981</guid>
      <dc:creator>lksridhar</dc:creator>
      <dc:date>2017-02-24T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the regular expression for my statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317550#M94982</link>
      <description>&lt;P&gt;Can you provide a sample of the raw log, please?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 12:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317550#M94982</guid>
      <dc:creator>adayton20</dc:creator>
      <dc:date>2017-02-24T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the regular expression for my statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317551#M94983</link>
      <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... my search here | rex field=_raw "EXTERNAL:(?&amp;lt;EXTERNAL&amp;gt;\d+\.\d+\.\d+\.\d+\/\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see it works in this example at &lt;A href="https://regex101.com/r/hMtFCm/1"&gt;regex101.com&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 13:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317551#M94983</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-02-24T13:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the regular expression for my statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317552#M94984</link>
      <description>&lt;P&gt;AFAIK shouldn't have to use a backward slash on colons. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 16:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317552#M94984</guid>
      <dc:creator>zanb</dc:creator>
      <dc:date>2017-02-24T16:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the regular expression for my statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317553#M94985</link>
      <description>&lt;P&gt;adayton and zanb , the below command is working fine.&lt;/P&gt;

&lt;P&gt;rex field=_raw "EXTERNAL:(?P.[^\s]*)"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 11:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-write-the-regular-expression-for-my-statement/m-p/317553#M94985</guid>
      <dc:creator>lksridhar</dc:creator>
      <dc:date>2017-02-27T11:05:33Z</dc:date>
    </item>
  </channel>
</rss>

