<?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: Calculate duration in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571615#M199188</link>
    <description>&lt;P&gt;Thank you for answer&lt;/P&gt;&lt;P&gt;here is the output&amp;nbsp;&lt;/P&gt;&lt;P&gt;step VV&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;destination duration&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9288&amp;nbsp; &amp;nbsp; server1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myserver 0.000000&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9288&amp;nbsp; &amp;nbsp; myserver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.002000&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;288&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;server2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myserver&amp;nbsp; 0.110000&lt;BR /&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9298&amp;nbsp; &amp;nbsp; myserver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.004000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-destination 2 and 4 missed. (must be 2=server2, 4=server1)&lt;/P&gt;&lt;P&gt;2-VV step 2 must be 0288&lt;/P&gt;&lt;P&gt;3-VV step 3 must be 0298&lt;/P&gt;&lt;P&gt;3-duration step 1 must be 0.001000&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 09:09:25 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2021-10-20T09:09:25Z</dc:date>
    <item>
      <title>Calculate duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571411#M199121</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi how can i extract table like this: (“myserver” is a field that already extracted)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;source &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;destination &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;duration&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;V&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;server1 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;myserver&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0.001 &amp;nbsp; &amp;nbsp; &amp;nbsp; 9288&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;myserver&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;server2 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0.002 &amp;nbsp; &amp;nbsp; &amp;nbsp; 9288&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;server2 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;myserver&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;0.032 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0298&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;myserver&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;server1 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0.004 &amp;nbsp; &amp;nbsp; &amp;nbsp; 9298&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;FYI: duration calculate as described below:&lt;/P&gt;&lt;P class=""&gt;Line1 (duration &amp;nbsp;&lt;SPAN class=""&gt;00:00:00.001)&lt;/SPAN&gt;&amp;nbsp;= (&lt;SPAN class=""&gt;12:00:59.853) -&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN class=""&gt;12:00:59.852)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Line2 (duration &lt;SPAN class=""&gt;00:00:00.002)&amp;nbsp;&lt;/SPAN&gt;= (&lt;SPAN class=""&gt;start_S&amp;nbsp;12:00:59.855) - (start_S&amp;nbsp;12:00:59.853)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Line3 (duration&amp;nbsp;&lt;SPAN class=""&gt;00:00:00.&lt;/SPAN&gt;&lt;SPAN class=""&gt;110) =&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN class=""&gt;forWE_APP_AS: &lt;FONT color="#0000FF"&gt;G&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;12:00:59.994) - (forWE_APP_AS: &lt;FONT color="#00FF00"&gt;P &amp;nbsp;&amp;nbsp;&lt;FONT color="#000000"&gt;12:00:59.884)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Line4 (duration&amp;nbsp;&lt;SPAN class=""&gt;00:00:00.&lt;/SPAN&gt;&lt;SPAN class=""&gt;004) = (end_E&amp;nbsp;12:01:00.007) - (end_E&amp;nbsp;12:01:00.003)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Here is the log: &amp;nbsp;(G=get, P=push)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.852 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;module1: &lt;FONT color="#0000FF"&gt;G&lt;/FONT&gt;[&lt;FONT color="#33CCCC"&gt;server1&lt;/FONT&gt;]Q[000]&lt;FONT color="#800080"&gt;V&lt;/FONT&gt;[9288]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.853 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;start_S: A_B V[9288]X[000000]G[0]L:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.855 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;module2: A_B V[9288]X[000000]G[0]L: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.855 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;start_S: C_D V[9288]X[000000]G[0]L:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.881 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;module3: A_B V[9288]X[000000]G[0]L:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.884 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;forWE_APP_AS: &lt;FONT color="#00FF00"&gt;P&lt;/FONT&gt;[&lt;FONT color="#FF6600"&gt;server2&lt;/FONT&gt;]K[000]&lt;FONT color="#800080"&gt;V&lt;/FONT&gt;[0288]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.994 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;forWE_APP_AS: &lt;FONT color="#0000FF"&gt;G&lt;/FONT&gt;[&lt;FONT color="#FF6600"&gt;server2&lt;/FONT&gt;]K[000]&lt;FONT color="#800080"&gt;V&lt;/FONT&gt;[0298]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:00:59.995 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;module2: A_B V[9298]X[000000]G[0]K: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:01:00.003 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;end_E: A_B V[9298]X[000000]G[0]K:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:01:00.007 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;module1: &lt;FONT color="#00FF00"&gt;P&lt;/FONT&gt;[&lt;FONT color="#33CCCC"&gt;server1&lt;/FONT&gt;]K[458]&lt;FONT color="#800080"&gt;V&lt;/FONT&gt;[9298]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;12:01:00.007 app &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;end_E: C_D V[9298]X[000000]G[0]K:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 20:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571411#M199121</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-18T20:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571420#M199122</link>
      <description>&lt;P&gt;Trying to understand the rules...&lt;/P&gt;&lt;P&gt;What are your rules for determining that the second of your log lines is destination 'myserver'&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is it about the 2nd log line that makes it the end time for your summary table row 1 calculation and what then makes that line also the start time for your second log data line?&lt;/P&gt;&lt;P&gt;What defines the logic to say that the last 3 lines of your data make up the start/end time for the duration calculation of your last table row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 21:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571420#M199122</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-10-18T21:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571524#M199154</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;1-servername extract from source field from filename (not exist in log)&lt;/P&gt;&lt;P&gt;2,3-actually this is the flow, from source to destination and return response to source&lt;/P&gt;&lt;P&gt;server1&amp;gt;myserver&amp;gt;server2&amp;gt;myserver&amp;gt;server1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;0.002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;0.110&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.004 &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;want to calculate each duration&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 1: need this condition ... | WHERE&amp;nbsp;V=V&amp;nbsp; &amp;nbsp;AND X=X&lt;/STRONG&gt;&lt;BR /&gt;12:00:59.853 app &lt;FONT color="#FF00FF"&gt;start_S: A_B&lt;/FONT&gt; V[0001]X[000000]G[0]L:&lt;BR /&gt;12:00:59.855 app &lt;FONT color="#FF00FF"&gt;start_S: C_D&lt;/FONT&gt; V[0001]X[000000]G[0]L:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 2: need this condition ... | WHERE X=X AND&amp;nbsp;V=V+10&lt;/STRONG&gt;&lt;BR /&gt;12:00:59.884 app &lt;FONT color="#339966"&gt;forWE_APP_AS: P&lt;/FONT&gt;[server2]K[000]V[0288]X[000000]&lt;BR /&gt;12:00:59.994 app &lt;FONT color="#339966"&gt;forWE_APP_AS: G&lt;/FONT&gt;[server2]K[000]V[0298]X[000000]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 3: need this condition ... | WHERE V=V&amp;nbsp; AND&amp;nbsp; X=X&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;12:01:00.003 app &lt;FONT color="#FF0000"&gt;end_E: A_B&lt;/FONT&gt; V[1000]X[000000]G[0]K:&lt;BR /&gt;12:01:00.007 app &lt;FONT color="#FF0000"&gt;end_E: C_D&lt;/FONT&gt; V[1000]X[000000]G[0]K:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all of this steps tell me duration of packets when send and recieve.&lt;/P&gt;&lt;P&gt;FYI: about this fields:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;A_B =start&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;C_D =end&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#339966"&gt;P=push&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#339966"&gt;G=get&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#339966"&gt;&lt;FONT color="#FF0000"&gt;A_B=&amp;nbsp;start&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#339966"&gt;&lt;FONT color="#FF0000"&gt;C_D=end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;any idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571524#M199154</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-19T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571564#M199169</link>
      <description>&lt;P&gt;There are lots of things going on here that make this difficult. Your step2 has no X value in your example data, but in your explanation, you show it has value. You have data in events that needs to be pushed up to previous events to get those values useable.&lt;/P&gt;&lt;P&gt;This example with your data shows some techniques to manipulate the data, but it makes lots of assumptions for grouping - and does not get all the data in the right place, but hopefully gives you some pointers&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval event=split("12:00:59.852 app     module1: G[server1]Q[000]V[9288];12:00:59.853 app     start_S: A_B V[9288]X[000000]G[0]L:;12:00:59.855 app     module2: A_B V[9288]X[000000]G[0]L:;12:00:59.855 app     start_S: C_D V[9288]X[000000]G[0]L:;12:00:59.881 app     module3: A_B V[9288]X[000000]G[0]L:;12:00:59.884 app     forWE_APP_AS: P[server2]K[000]V[0288];12:00:59.994 app     forWE_APP_AS: G[server2]K[000]V[0298];12:00:59.995 app     module2: A_B V[9298]X[000000]G[0]K:;12:01:00.003 app     end_E: A_B V[9298]X[000000]G[0]K:;12:01:00.007 app     module1: P[server1]K[458]V[9298];12:01:00.007 app     end_E: C_D V[9298]X[000000]G[0]K:",";")
| mvexpand event
| table event
| eval myserver="myserver"
| rex field=event "(?&amp;lt;t&amp;gt;\d+:\d+:\d+.\d+)\s\w+\s+"
| eval _time=strptime(t, "%H:%M:%S.%Q")
| rex field=event "app\s+(?&amp;lt;type&amp;gt;(module1:\sG|start_S:\s[AC]_[BD]|forWE_APP_AS:\s\w|end_E:\s[AC]_[BD]))"
| rex field=event "\s[PG]\[(?&amp;lt;server&amp;gt;[^]]*)\]"
| eval condition=case(match(type,"module1: G"), "1_1_1", match(type,"start_S: A_B"), "2_1_1", match(type,"start_S: C_D"), "2_2", match(type,"forWE_APP_AS: P"), "3_1", match(type,"forWE_APP_AS: G"), "3_2", match(type,"end_E: A_B"), "4_1", match(type,"end_E: C_D"), "4_2")
| rex field=condition "(?&amp;lt;step&amp;gt;\d)_(?&amp;lt;bound&amp;gt;\d)(_(?&amp;lt;group&amp;gt;\d))?"
| rex field=event "V\[(?&amp;lt;V&amp;gt;\d+)\]"
| eval VV=if(condition="3_2", V-10, tonumber(V))
| rex field=event "X\[(?&amp;lt;X&amp;gt;\d+)\]"
| eval X=coalesce(X, "000000")
| streamstats global=f min(_time) as mint max(_time) as maxt by VV step
| eval duration=if(bound=2,maxt-mint,null())
| streamstats global=f min(mint) as mint max(maxt) as maxt by VV group
| eval duration=coalesce(duration, if(group=1, maxt-mint, null()))
| fields - event t type mint maxt
| where isnotnull(bound)
| eval source=case(step=1 OR step=3, server, step=2 OR step=4, myserver)
| eval destination=case(step=1 OR step=3, myserver, step=2 OR step=4, server)
| table source destination duration V *
| stats values(source) as source values(destination) as destination max(duration) as duration by step VV&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 22:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571564#M199169</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-10-19T22:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571615#M199188</link>
      <description>&lt;P&gt;Thank you for answer&lt;/P&gt;&lt;P&gt;here is the output&amp;nbsp;&lt;/P&gt;&lt;P&gt;step VV&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;destination duration&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9288&amp;nbsp; &amp;nbsp; server1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myserver 0.000000&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9288&amp;nbsp; &amp;nbsp; myserver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.002000&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;288&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;server2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myserver&amp;nbsp; 0.110000&lt;BR /&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9298&amp;nbsp; &amp;nbsp; myserver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.004000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-destination 2 and 4 missed. (must be 2=server2, 4=server1)&lt;/P&gt;&lt;P&gt;2-VV step 2 must be 0288&lt;/P&gt;&lt;P&gt;3-VV step 3 must be 0298&lt;/P&gt;&lt;P&gt;3-duration step 1 must be 0.001000&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 09:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571615#M199188</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-20T09:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571726#M199222</link>
      <description>&lt;P&gt;Yes, filling in those gaps is challenging, as for step 2, you need data from future events to populate server2 into destination, whereas in step4, you need data from past events. You can use forms of streamstats but the challenge is that you don't have a common correlation id to group the events together, i.e. how do you know that server2, from a row that contains V=0288 and V=0298 is related to V=9288 in the data where it needs to be applied.&lt;/P&gt;&lt;P&gt;From your explanation earlier, I assume that you may have many events like this running concurrently in the log with different values of V - is that correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have the possibility to change your logging output, then that would allow you to make the reporting side easier, but at the moment, I can't easily see a way to get to where you want to go without very specific tweaking of the SPL, which may not be useful with your real data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 21:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-duration/m-p/571726#M199222</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-10-20T21:33:41Z</dc:date>
    </item>
  </channel>
</rss>

