<?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: Regex Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361427#M162211</link>
    <description>&lt;P&gt;Hey &lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "ACTION\s\:\[\d+\]\s(?&amp;lt;YourFiledName&amp;gt;[\'|\"][^\'|\"]*[\'|\"])"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Mar 2018 10:51:51 GMT</pubDate>
    <dc:creator>tiagofbmm</dc:creator>
    <dc:date>2018-03-16T10:51:51Z</dc:date>
    <item>
      <title>Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361426#M162210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need a regex to extract at search time the values after ACTION[*] and up to the next character, regardless of whether its in quotes or not. So the values "100", or 'alter user blah identified by *'   from the following examples;&lt;/P&gt;

&lt;P&gt;ACTION:[3] "100" RETURNCODE:[1] &lt;BR /&gt;
ACTION :[32] 'alter user scott identified by *' DATABASE &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361426#M162210</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-03-16T10:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361427#M162211</link>
      <description>&lt;P&gt;Hey &lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "ACTION\s\:\[\d+\]\s(?&amp;lt;YourFiledName&amp;gt;[\'|\"][^\'|\"]*[\'|\"])"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361427#M162211</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-16T10:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361428#M162212</link>
      <description>&lt;P&gt;It nearly worked, extracted out the 'alter user scott identified by *' ok, but I didnt get "100" back as a value...&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 11:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361428#M162212</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-03-16T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361429#M162213</link>
      <description>&lt;P&gt;Yes, I missed a * in the first \s:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex field=_raw "ACTION\s*\:\[\d+\]\s(?&amp;lt;YourFiledName&amp;gt;[\'|\"][^\'|\"]*[\'|\"])"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 11:03:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361429#M162213</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-16T11:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361430#M162214</link>
      <description>&lt;P&gt;Awesommmmmmme. &lt;/P&gt;

&lt;P&gt;Worked perfectly. Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 11:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/361430#M162214</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-03-16T11:14:03Z</dc:date>
    </item>
  </channel>
</rss>

