<?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: find top maximum transaction duration in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559833#M159072</link>
    <description>&lt;P&gt;thank you for answer, do you have any idea about id extraction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 16:16:04 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2021-07-16T16:16:04Z</dc:date>
    <item>
      <title>find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559793#M159051</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I have log file like this:&lt;/P&gt;&lt;P&gt;2021-07-15 00:00:01,869 INFO APP.InEE-p1-1234567 [AppListener] Receive Message[A123]: Q[p1.APP], IID[null], Cookie[{"NODE":"0000aa000"}]&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;2021-07-15 00:00:01,988 INFO APP.InEE-p1-1234567 [AaaPowerManager] Send Message [X0000A0000] to [APP.p2] with IID[null], LTE[00000]&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;2021-07-15 00:00:11,714 INFO APP.InE-p2-9876543 [AppListener] Receive Message[Y000000Z00000]: Q[p2.APP], IID[null], Cookie[null]&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;2021-07-15 00:00:11,747 INFO APP.InEE-P2-9876543_CLIENT.InEE-p1-1234567 [AaaPowerManager] Send Message [A123] to [APP.p1] with IID[null], LTE[00000]&lt;BR /&gt;.&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want to calculate duration of each transaction like this ("Send Message"-"Receive Message"="duration")&lt;BR /&gt;00:00:11,747&amp;nbsp; -&amp;nbsp; 00:00:01,869&amp;nbsp; = 00:00:09:878&lt;/P&gt;&lt;P&gt;output exception:&lt;BR /&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; duration&lt;BR /&gt;1234567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:09:878&lt;/P&gt;&lt;P&gt;any idea?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 18:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559793#M159051</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-16T18:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559808#M159060</link>
      <description>&lt;P&gt;There are a couple of ways to do that.&amp;nbsp; Both of these example assume the id field is already extracted.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transaction id startswith="Send Message" endswith="Receive Message"
| eval duration=tostring(duration,"duration")
| table id duration&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;| stats range(_time) as duration by id
| eval duration=tostring(duration,"duration")
| table id duration&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 13:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559808#M159060</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-16T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559833#M159072</link>
      <description>&lt;P&gt;thank you for answer, do you have any idea about id extraction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 16:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559833#M159072</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-16T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559838#M159076</link>
      <description>&lt;P&gt;If I've made the right assumptions about where the id field is then this should extract it for you.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\.\w+-\w+-(?&amp;lt;id&amp;gt;\d+)"
| stats range(_time) as duration by id
| eval duration=tostring(duration,"duration")
| table id duration&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559838#M159076</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-16T15:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559841#M159078</link>
      <description>&lt;P&gt;thank you for answer, currently it return 00:00:00:119&lt;/P&gt;&lt;P&gt;because of second "&lt;SPAN&gt;Send Message" in middle of event&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;actually the main problem is detect start and end part of transaction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;start:&amp;nbsp;APP.InEE-p1-1234567 [AppListener] Receive Message&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;End: APP.InEE-P2-9876543_CLIENT.InEE-p1-1234567 [AaaPowerManager] Send Message&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one thing that come to my mind is use this&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;9876543&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt; to detect end of transaction&amp;nbsp;&lt;/P&gt;&lt;P&gt;this id create when server2 reply to server1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what happening, this app work like this:&lt;/P&gt;&lt;P&gt;this app locate beside two server, get packets from server1 and send to server2 and return reply to server1&lt;/P&gt;&lt;P&gt;Receive (request from server1)&amp;gt; Send(request to server2) &amp;gt; Receive(reply from server2) &amp;gt; Send (reply&amp;nbsp; to server1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 16:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559841#M159078</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-16T16:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559852#M159082</link>
      <description>&lt;P&gt;It seems to me (not knowing anything about your application) that the transaction duration most interesting is that for AppListener since that appears to include the time spent by downstream servers.&amp;nbsp; If that's the case then you may be able to include only AppListener in the query.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 17:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559852#M159082</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-16T17:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559858#M159086</link>
      <description>&lt;P&gt;You right it is better to work with this items&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2021-07-15 00:00:01,869 INFO APP.InEE-p1-&lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;1234567&lt;/FONT&gt; &lt;/STRONG&gt;[&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;AppListener&lt;/STRONG&gt;&lt;/FONT&gt;] &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Receive Message&lt;/STRONG&gt;&lt;/FONT&gt;[A123]: Q[p1.APP], IID[null], Cookie[{"NODE":"0000aa000"}]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021-07-15 00:00:01,988 INFO APP.InEE-p1-&lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;1234567&lt;/FONT&gt;&lt;/STRONG&gt; [&lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;AaaPowerManager&lt;/FONT&gt;&lt;/STRONG&gt;] &lt;FONT color="#333399"&gt;&lt;STRONG&gt;Send Message&lt;/STRONG&gt; &lt;/FONT&gt;[X0000A0000] to [APP.p2] with IID[null], LTE[00000]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021-07-15 00:00:11,714 INFO APP.InE-p2-&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;9876543&lt;/FONT&gt; &lt;/STRONG&gt;[&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;AppListener&lt;/FONT&gt;&lt;/STRONG&gt;] &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;Receive Message&lt;/FONT&gt;&lt;/STRONG&gt;[Y000000Z00000]: Q[p2.APP], IID[null], Cookie[null]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021-07-15 00:00:11,747 INFO APP.InEE-P2-&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;9876543&lt;/FONT&gt;&lt;/STRONG&gt;_CLIENT.InEE-p1-&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;1234567&lt;/STRONG&gt; &lt;/FONT&gt;[&lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;AaaPowerManager&lt;/FONT&gt;&lt;/STRONG&gt;] &lt;STRONG&gt;&lt;FONT color="#333399"&gt;Send Message&lt;/FONT&gt;&lt;/STRONG&gt; [A123] to [APP.p1] with IID[null], LTE[00000]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I change the color of them so with this&amp;nbsp;&lt;/SPAN&gt;condition, do you have any idea to grep start and end of transaction correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;currently result is:&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; duration&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;1234567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:00:119&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#00FF00"&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;9876543&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;00:00:00:033&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#00FF00"&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;expected result:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; duration&lt;/P&gt;&lt;P&gt;1234567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:00:09:878&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 18:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559858#M159086</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-16T18:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559871#M159088</link>
      <description>&lt;P&gt;Is the id field extracted correctly?&amp;nbsp; The last event contains both 1234567 and 9876543 so which is the correct id?&lt;/P&gt;&lt;P&gt;If you're using the transaction command then the startswith and endswith option values may need to be expanded to include more text so the right events are used.&lt;/P&gt;&lt;P&gt;If using the stats command then you'll probably need to eliminate unwanted events before calculating the range.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 20:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559871#M159088</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-16T20:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559873#M159089</link>
      <description>&lt;P&gt;1-Yes id extraction work but separate them.&lt;/P&gt;&lt;P&gt;2-last item contain both which&amp;nbsp;&lt;A href="tel:1234567" target="_blank"&gt;1234567&lt;/A&gt;&amp;nbsp; is correct.&lt;/P&gt;&lt;P&gt;3-which one is better for this scenario?&lt;/P&gt;&lt;P&gt;4-would you please tell me spl command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 20:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559873#M159089</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-16T20:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559942#M159115</link>
      <description>&lt;P&gt;This query uses the second id in an event that contains more than one.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=2 "\.\w+-\w+-(?&amp;lt;id&amp;gt;\d+)"
| eval id=coalesce(mvindex(id,1),mvindex(id,0))
| stats range(_time) as duration by id
| eval duration=tostring(duration,"duration")
| table id duration&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 18 Jul 2021 17:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/559942#M159115</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-18T17:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: find top maximum transaction duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/560008#M159130</link>
      <description>&lt;P&gt;Here is the output&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;duration&lt;/P&gt;&lt;P&gt;1234567&amp;nbsp; &amp;nbsp; &amp;nbsp; 00:00:00:119&lt;BR /&gt;9876543&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;00:00:00:000&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 09:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-top-maximum-transaction-duration/m-p/560008#M159130</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-19T09:27:29Z</dc:date>
    </item>
  </channel>
</rss>

