<?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/377706#M110754</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;^msg:\s\d+:(?P&amp;lt;modelname&amp;gt;[a-zA-Z\s\d\_]+\s(?=\d+\.\d+)(?P&amp;lt;time&amp;gt;\d+\.\d+))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Feb 2019 21:35:26 GMT</pubDate>
    <dc:creator>mydog8it</dc:creator>
    <dc:date>2019-02-08T21:35:26Z</dc:date>
    <item>
      <title>Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377701#M110749</link>
      <description>&lt;P&gt;Hi All &lt;/P&gt;

&lt;P&gt;Below are my sample events am trying to use regex and extract Time to run brinson for all days in Parallel as modelname and 254.697016001as time, can some please help over here &lt;/P&gt;

&lt;P&gt;msg:     30947: Time to run brinson for all days in Parallel 254.697016001&lt;BR /&gt;&lt;BR /&gt;
msg:     30968: time to build classification for universe B_3446 all Brinson sections is 0.0605750083923&lt;BR /&gt;&lt;BR /&gt;
msg:     30968: time to load v_2 0.138014793396 &lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377701#M110749</guid>
      <dc:creator>mbyreddy03</dc:creator>
      <dc:date>2020-09-29T23:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377702#M110750</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;modelname&amp;gt;Time to run.*?Parallel)\s+(?&amp;lt;time&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 21:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377702#M110750</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-08T21:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377703#M110751</link>
      <description>&lt;P&gt;I think this is what you are asking for....&lt;BR /&gt;
^msg:\s30947:(?P[a-zA-Z\s]+(?P\d+.\d+))&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 21:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377703#M110751</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-02-08T21:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377704#M110752</link>
      <description>&lt;P&gt;I get what you want now, how is this...&lt;/P&gt;

&lt;P&gt;^msg:\s\d+:(?P[a-zA-Z\s\d_]+\s(?=\d+.\d+)(?P\d+.\d+))&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 21:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377704#M110752</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-02-08T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377705#M110753</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;^msg:\s\d+:(?P&amp;lt;modelname&amp;gt;[a-zA-Z\s\d\_]+\s(?=\d+\.\d+)(?P&amp;lt;time&amp;gt;\d+\.\d+))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 21:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377705#M110753</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-02-08T21:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377706#M110754</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;^msg:\s\d+:(?P&amp;lt;modelname&amp;gt;[a-zA-Z\s\d\_]+\s(?=\d+\.\d+)(?P&amp;lt;time&amp;gt;\d+\.\d+))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 21:35:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377706#M110754</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-02-08T21:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377707#M110755</link>
      <description>&lt;P&gt;My goodness I struggle with this UI sometimes!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 21:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377707#M110755</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-02-08T21:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377708#M110756</link>
      <description>&lt;P&gt;You can try this regex ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;msg\:\s\d+\:\s(?&amp;lt;modelname&amp;gt;[a-zA-z\s\d]+)\s(?P&amp;lt;time&amp;gt;\d+\.\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for example ,run anywhere this search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="msg: 30947: Time to run brinson for all days in Parallel 254.697016001 ; 
msg: 30968: time to build classification for universe B_3446 all Brinson sections is 0.0605750083923; 
msg: 30968: time to load v_2 0.138014793396" 
| makemv delim=";" data 
| mvexpand data 
| rename data as _raw | fields - _time 
| rex field=_raw "msg\:\s\d+\:\s(?&amp;lt;modelname&amp;gt;[a-zA-z\s\d]+)\s(?P&amp;lt;time&amp;gt;\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this works.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 07:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377708#M110756</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-02-09T07:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377709#M110757</link>
      <description>&lt;P&gt;Try This:-&lt;/P&gt;

&lt;P&gt;(?:\w*:\s){2}(?P.*?)(?P\d+.\d+)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377709#M110757</guid>
      <dc:creator>kushagra9120</dc:creator>
      <dc:date>2020-09-29T23:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377710#M110758</link>
      <description>&lt;P&gt;Hi @mbyreddy03&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval msg="msg: 30947: Time to run brinson for all days in Parallel 254.697016001 " 
| rex field=msg "(?P&amp;lt;modelname&amp;gt;Time.*Parallel)\s(?P&amp;lt;time&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Feb 2019 15:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/377710#M110758</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-09T15:11:34Z</dc:date>
    </item>
  </channel>
</rss>

