<?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 can I extract the 3 or 5 digit number and 2 3-letter words after &amp;quot;Request&amp;quot; in my sample log? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156836#M44107</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw " Blocked Incoming Request (?&amp;lt;aid&amp;gt;d+)(?&amp;lt;theRest&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Jun 2015 13:15:31 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-15T13:15:31Z</dc:date>
    <item>
      <title>How can I extract the 3 or 5 digit number and 2 3-letter words after "Request" in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156835#M44106</link>
      <description>&lt;P&gt;The log is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-06-15 15:50:29,381 ws prd 62 WARN  JourneySearch # # # # Blocked Incoming Request 13360-PSA-LIS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have used this for the 3/5 digit number, but I want know to extract the words after the number: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw " Blocked Incoming Request (?&amp;lt;aid&amp;gt;\d+)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone help me please? &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 13:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156835#M44106</guid>
      <dc:creator>kostasKats</dc:creator>
      <dc:date>2015-06-15T13:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the 3 or 5 digit number and 2 3-letter words after "Request" in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156836#M44107</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw " Blocked Incoming Request (?&amp;lt;aid&amp;gt;d+)(?&amp;lt;theRest&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2015 13:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156836#M44107</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-15T13:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the 3 or 5 digit number and 2 3-letter words after "Request" in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156837#M44108</link>
      <description>&lt;P&gt;You can also get the words as a multi-valued result and separate them as needed with mvexpand&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=_raw "Request (?&amp;lt;aid&amp;gt;\d+)\-(?&amp;lt;words&amp;gt;\S+)"  |makemv delim="-" words |mvexpand words
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2015 13:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156837#M44108</guid>
      <dc:creator>reed_kelly</dc:creator>
      <dc:date>2015-06-15T13:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the 3 or 5 digit number and 2 3-letter words after "Request" in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156838#M44109</link>
      <description>&lt;P&gt;Thank you very much all! &lt;/P&gt;

&lt;P&gt;This worked perfect for my work:&lt;BR /&gt;
"Blocked Incoming Request" |rex field=_raw "Request (?\d+)-(?\S+)" |stats count by aid, word&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 13:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156838#M44109</guid>
      <dc:creator>kostasKats</dc:creator>
      <dc:date>2015-06-15T13:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the 3 or 5 digit number and 2 3-letter words after "Request" in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156839#M44110</link>
      <description>&lt;P&gt;You also need &lt;CODE&gt;max_match=0&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex max_match=0 field=_raw "Request (?\d+)\-(?\S+)"  |makemv delim="-" words |mvexpand words
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jun 2015 16:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-or-5-digit-number-and-2-3-letter-words/m-p/156839#M44110</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-16T16:36:33Z</dc:date>
    </item>
  </channel>
</rss>

