<?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 a string from an event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435097#M124085</link>
    <description>&lt;P&gt;thank you so much mayurr98 and richgalloway.  i will try the code.  &lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 20:25:58 GMT</pubDate>
    <dc:creator>owie6466</dc:creator>
    <dc:date>2019-08-07T20:25:58Z</dc:date>
    <item>
      <title>How to extract a string from an event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435094#M124082</link>
      <description>&lt;P&gt;Hello, I am very new to Splunk and I would like some help in doing this.&lt;BR /&gt;&lt;BR /&gt;
I need to extract from this field:&lt;BR /&gt;
    Event&lt;BR /&gt;
&lt;STRONG&gt;1 hour  ago,&lt;/STRONG&gt; vmpit-p4cti002.lm.lmig.com, windows 6.3.9600.&lt;/P&gt;

&lt;P&gt;and then check if it is less &amp;gt; 4 hours&lt;/P&gt;

&lt;P&gt;I've been going through some answers and I, unfortunately, can't find the right one.  &lt;/P&gt;

&lt;P&gt;Thank you so much for any assistance.  &lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435094#M124082</guid>
      <dc:creator>owie6466</dc:creator>
      <dc:date>2019-08-07T19:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string from an event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435095#M124083</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?&amp;lt;Time&amp;gt;\d{1,2})\s+hour\s+ago" | where Time &amp;lt; 4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435095#M124083</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-07T19:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string from an event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435096#M124084</link>
      <description>&lt;P&gt;I offer a slight modification to allow for "2 hours ago".&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex "(?&amp;lt;Time&amp;gt;\d{1,2})\s+hours?\s+ago" | where Time &amp;lt; 4&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435096#M124084</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-07T19:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string from an event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435097#M124085</link>
      <description>&lt;P&gt;thank you so much mayurr98 and richgalloway.  i will try the code.  &lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 20:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-an-event/m-p/435097#M124085</guid>
      <dc:creator>owie6466</dc:creator>
      <dc:date>2019-08-07T20:25:58Z</dc:date>
    </item>
  </channel>
</rss>

