<?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 string using rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-using-rex/m-p/196401#M56671</link>
    <description>&lt;P&gt;Finally got it right:&lt;/P&gt;

&lt;P&gt;rex field=_raw "] [(?&lt;STEP&gt;.+?)]"&lt;/STEP&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2014 19:56:06 GMT</pubDate>
    <dc:creator>RVDowning</dc:creator>
    <dc:date>2014-06-11T19:56:06Z</dc:date>
    <item>
      <title>Extract string using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-using-rex/m-p/196399#M56669</link>
      <description>&lt;P&gt;I have data that looks like:&lt;BR /&gt;
20140609 19:14:03 [PERF] [CREATE PLAN START] Action=CreatePlan,&lt;BR /&gt;
and would like to extract the text between the second pair of brackets, namely in the above line the text "CREATE PLAN START."&lt;/P&gt;

&lt;P&gt;I tried rex field=_raw "]s+[=(?&lt;STEP&gt;[]])" but obviously this isn't right.&lt;/STEP&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 19:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-using-rex/m-p/196399#M56669</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2014-06-11T19:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-using-rex/m-p/196400#M56670</link>
      <description>&lt;P&gt;This looks like it might work for you:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;rex field=_raw "]\s+\[(?&amp;lt;step&amp;gt;[\w\s]*)\]"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 19:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-using-rex/m-p/196400#M56670</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-06-11T19:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-using-rex/m-p/196401#M56671</link>
      <description>&lt;P&gt;Finally got it right:&lt;/P&gt;

&lt;P&gt;rex field=_raw "] [(?&lt;STEP&gt;.+?)]"&lt;/STEP&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 19:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-using-rex/m-p/196401#M56671</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2014-06-11T19:56:06Z</dc:date>
    </item>
  </channel>
</rss>

