<?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: Detect most delay transactions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476809#M133835</link>
    <description>&lt;P&gt;Is that so,I'm sorry.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 10:32:27 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-02-21T10:32:27Z</dc:date>
    <item>
      <title>Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476803#M133829</link>
      <description>&lt;P&gt;How can I find most delay transactions?&lt;BR /&gt;
Here is the log file like below, I want to find which transaction delay and sort them descending, show result in table and subtract time stamp and show in front of transaction  &lt;/P&gt;

&lt;P&gt;Here is the log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;16:30:53:002 start[C1]L[143]F[10]
16:30:54:002 start[C2]L[143]F[20]
16:30:55:002 start[C5]L[143]F[02]
16:30:56:002 start[C12]L[143]F[30]
16:30:57:002 start[C5]L[143]F[7]
16:30:58:002 end[C1]L[143]F[10]
16:30:59:002 start[C1]L[143]F[11]
16:30:60:002 end[C1]L[143]F[11]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Expected output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transaction                               Delay 
16:30:53:002 start[C1]L[143]F[10]            5s 
16:30:58:002 end[C1]L[143]F[10]

16:30:59:002 start[C1]L[143]F[10]            1s 
16:30:60:002 end[C1]L[143]F[10]

...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;FYI: 1 sometimes we have start without end, or end without start.&lt;BR /&gt;
2 “F” means footprints, sometimes “F” it might not be unique, so after first “start” we should expect “end”.&lt;/P&gt;

&lt;P&gt;Any recommendation?&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 07:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476803#M133829</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-20T07:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476804#M133830</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your search
| rex "(?&amp;lt;time&amp;gt;\S+) (?&amp;lt;status&amp;gt;start|end)(?&amp;lt;id&amp;gt;\[\w+\]L\[\d+\])"
| eval time=strptime(time, "%T:%3Q")
| streamstats count(eval(status="start")) as session by id
| stats list(_raw) as Transaction range(time) as Delay count as flag by session id
| where flag &amp;gt;1
| table Transaction Delay
| eval Delay=tostring(Delay, "duration")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476804#M133830</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T08:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476805#M133831</link>
      <description>&lt;P&gt;Would you please add makeresults in the first below sample, so I can check output, thanks.&lt;/P&gt;

&lt;P&gt;16:30:53:002 start[C1]L[143]F[10]&lt;BR /&gt;
 16:30:54:002 start[C2]L[143]F[20]&lt;BR /&gt;
 16:30:55:002 start[C5]L[143]F[02]&lt;BR /&gt;
 16:30:56:002 start[C12]L[143]F[30]&lt;BR /&gt;
 16:30:57:002 start[C5]L[143]F[7]&lt;BR /&gt;
 16:30:58:002 end[C1]L[143]F[10]&lt;BR /&gt;
 16:30:59:002 start[C1]L[143]F[11]&lt;BR /&gt;
 16:30:60:002 end[C1]L[143]F[11]&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 09:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476805#M133831</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-21T09:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476806#M133832</link>
      <description>&lt;P&gt;Please use makeresults &lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 09:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476806#M133832</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-21T09:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476807#M133833</link>
      <description>&lt;P&gt;why?  there is your search, isn't it?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 10:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476807#M133833</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476808#M133834</link>
      <description>&lt;P&gt;No result not work as expected, if makeresults add to it i can describe more precisely here.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 10:12:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476808#M133834</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-21T10:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476809#M133835</link>
      <description>&lt;P&gt;Is that so,I'm sorry.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 10:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476809#M133835</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T10:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476810#M133836</link>
      <description>&lt;P&gt;Seems group all the result, not separate them two by two that dedicate them bye “start” and “end”.&lt;BR /&gt;
I think footprint (F) and time stamp might help to separate them two by two.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 10:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476810#M133836</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-21T10:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476811#M133837</link>
      <description>&lt;P&gt;No such thing.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 11:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476811#M133837</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T11:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476812#M133838</link>
      <description>&lt;P&gt;Here is the output &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;16:30:53:002 start[C1]L[143]F[10]          6s
 16:30:54:002 start[C2]L[143]F[20]
 16:30:55:002 start[C5]L[143]F[02]
 16:30:56:002 start[C12]L[143]F[30]
 16:30:57:002 start[C5]L[143]F[7]
 16:30:59:002 start[C1]L[143]F[11]



16:30:58:002 end[C1]L[143]F[10]       2s
 16:30:60:002 end[C1]L[143]F[11]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476812#M133838</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-21T13:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476813#M133839</link>
      <description>&lt;P&gt;why another session and id are same multivalue?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476813#M133839</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476814#M133840</link>
      <description>&lt;P&gt;Hi @mehrdad_2000, Try this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | makeresults | eval Transaction="16:30:53:002 start[C1]L[143]F[10],16:30:54:002 start[C2]L[143]F[20],16:30:55:002 start[C5]L[143]F[02],16:30:56:002 start[C12]L[143]F[30],16:30:57:002 start[C5]L[143]F[7],16:30:58:002 end[C1]L[143]F[10],16:30:59:002 start[C1]L[143]F[11],16:31:00:002 end[C1]L[143]F[11]" | makemv delim="," Transaction | mvexpand Transaction | rex field=Transaction "(?&amp;lt;time&amp;gt;[\d:]+)\s(?&amp;lt;status&amp;gt;[\w]+)(?&amp;lt;field&amp;gt;.*)" | eventstats count by field | where count=2 | eval time=strptime(time, "%H:%M:%S:%3N") | delta p=1 time as Delay | eval Delay=if(status="end", Delay, "") | table Transaction, Delay
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 15:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476814#M133840</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-21T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Detect most delay transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476815#M133841</link>
      <description>&lt;P&gt;Thank you this exactly what I want.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 15:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detect-most-delay-transactions/m-p/476815#M133841</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-22T15:09:42Z</dc:date>
    </item>
  </channel>
</rss>

