<?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 extract event_id and STATUS? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338141#M100293</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;... | rex "Subject : Plan Status - (?&amp;lt;eventID&amp;gt;\d+)\s(?&amp;lt;STATUS&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will work if you have additional stuff after that last line.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2017 18:16:27 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2017-10-30T18:16:27Z</dc:date>
    <item>
      <title>How to extract event_id and STATUS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338138#M100290</link>
      <description>&lt;P&gt;I have a single row event that populates the below values and i would like to extract eventid=389643 and STATUS=FINISHED using regex. Could you help me with the regex pattern to extract these values.&lt;/P&gt;

&lt;P&gt;2017-10-30 06:48:03,357 [pool-22-thread-1] INFO  xxxxxxxxxxxxxxxxxxxxxxx - Email Sent&lt;BR /&gt;
To : xxxxxxxxxxxxxxxxxxxxxxxx&lt;BR /&gt;
From : xxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;BR /&gt;
Subject : Plan  Status - 389643 FINISHED&lt;BR /&gt;
Body : Plan  Status - 389643 FINISHED&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 17:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338138#M100290</guid>
      <dc:creator>jayakumar89</dc:creator>
      <dc:date>2017-10-30T17:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event_id and STATUS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338139#M100291</link>
      <description>&lt;P&gt;Try this: &lt;CODE&gt;&amp;lt;yoursearch&amp;gt; | rex field=_raw "(?&amp;lt;eventID&amp;gt;\d+)\s(?&amp;lt;STATUS&amp;gt;\w+)$"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This assumes that there is nothing in the event &lt;STRONG&gt;after&lt;/STRONG&gt; your status value (the RegEx anchors to the end of _raw)&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 17:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338139#M100291</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-10-30T17:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event_id and STATUS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338140#M100292</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex  Status\s\-\s(?&amp;lt;eventid&amp;gt;\d+)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex -\s\d+\s(?&amp;lt;STATUS&amp;gt;\w+)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 18:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338140#M100292</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-10-30T18:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event_id and STATUS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338141#M100293</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | rex "Subject : Plan Status - (?&amp;lt;eventID&amp;gt;\d+)\s(?&amp;lt;STATUS&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will work if you have additional stuff after that last line.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 18:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-id-and-STATUS/m-p/338141#M100293</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-10-30T18:16:27Z</dc:date>
    </item>
  </channel>
</rss>

