<?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: Need to extract elapsed time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477317#M133966</link>
    <description>&lt;P&gt;This should do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "timeUsed\(ms) = (?&amp;lt;timeUsed&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Apr 2020 12:07:37 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-04-17T12:07:37Z</dc:date>
    <item>
      <title>Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477316#M133965</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I have a query with the below mentioned resultset&lt;/P&gt;

&lt;P&gt;logger: com.optum.bh.benefit.plan.api.BhBenefitPlansResource&lt;BR /&gt;
   message: bhben-plan-api:bHPlanView(), env=prod packageId = 1438939 timeUsed(ms) = 19&lt;BR /&gt;
   properties: { [+]&lt;BR /&gt;
   }&lt;BR /&gt;
   severity: DEBUG&lt;BR /&gt;
   thread: http-nio-8080-exec-5&lt;BR /&gt;
}&lt;BR /&gt;
Show as raw text&lt;BR /&gt;
host = hec-splunk.optum.commessage = bhben-plan-api:bHPlanView(), env=prod packageId = 1438939 timeUsed(ms) = 19source = bhwebservice.logsourcetype = cba_shared_components:scwebservice:error_log&lt;/P&gt;

&lt;P&gt;Need to extract timeUsed(ms) field so that I can build a table for the elapsed time for the requests&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477316#M133965</guid>
      <dc:creator>vipulg83</dc:creator>
      <dc:date>2020-09-30T05:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477317#M133966</link>
      <description>&lt;P&gt;This should do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "timeUsed\(ms) = (?&amp;lt;timeUsed&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477317#M133966</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-17T12:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477318#M133967</link>
      <description>&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex 'timeUsed(ms) = (?\d+)': Regex: unmatched closing parenthesis&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477318#M133967</guid>
      <dc:creator>vipulg83</dc:creator>
      <dc:date>2020-04-17T12:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477319#M133968</link>
      <description>&lt;P&gt;you fix it&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477319#M133968</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-17T12:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477320#M133969</link>
      <description>&lt;P&gt;working on that&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477320#M133969</guid>
      <dc:creator>vipulg83</dc:creator>
      <dc:date>2020-04-17T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477321#M133970</link>
      <description>&lt;P&gt;Updated it a bit&lt;/P&gt;

&lt;P&gt;rex "timeUsed(ms) = (?\d+)"&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477321#M133970</guid>
      <dc:creator>vipulg83</dc:creator>
      <dc:date>2020-04-17T12:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477322#M133971</link>
      <description>&lt;P&gt;That error message usually means there's a missing backslash &lt;CODE&gt;\\&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477322#M133971</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-17T12:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477323#M133972</link>
      <description>&lt;P&gt;Done, thanks&lt;/P&gt;

&lt;P&gt;index=cba_shared_components timeUsed(ms)| rex "timeUsed(ms) = (?\d+)"|table timeUsed&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477323#M133972</guid>
      <dc:creator>vipulg83</dc:creator>
      <dc:date>2020-09-30T05:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477324#M133973</link>
      <description>&lt;P&gt;Done, thanks&lt;/P&gt;

&lt;P&gt;index=cba_shared_components timeUsed(ms)| rex "timeUsed(ms) = (?\d+)"|table timeUsed&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:02:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477324#M133973</guid>
      <dc:creator>vipulg83</dc:creator>
      <dc:date>2020-09-30T05:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477325#M133974</link>
      <description>&lt;P&gt;was able to build a dashboard guys, thanks for your help&lt;/P&gt;

&lt;P&gt;rex "timeUsed(ms) = (?&amp;lt;timeUsed&amp;gt;\d+)"|table timeUsed | eval timeUsedBucket=case(timeUsed&amp;lt;=100,"0-100ms",timeUsed&amp;lt;=200,"101-200ms",timeUsed&amp;lt;=500,"201-500ms",timeUsed&amp;lt;=1000,"501-1000ms",timeUsed&amp;lt;=5000,"1001-5000ms",1==1,"above 5000ms")| stats count by timeUsedBucket&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 13:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477325#M133974</guid>
      <dc:creator>vipulg83</dc:creator>
      <dc:date>2020-04-17T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477326#M133975</link>
      <description>&lt;P&gt;Use backticks to keep the system from eating your code.&lt;BR /&gt;
If your problem is resolved then please accept the answer to help future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 14:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-elapsed-time/m-p/477326#M133975</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-17T14:38:14Z</dc:date>
    </item>
  </channel>
</rss>

