<?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 concurrency of transactions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63566#M15698</link>
    <description>&lt;P&gt;My suggestion would be:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;use the &lt;CODE&gt;gentimes&lt;/CODE&gt; command to generate a set of events every 5 minutes over the relevant span&lt;/LI&gt;
&lt;LI&gt;use &lt;CODE&gt;eval&lt;/CODE&gt; to set the duration of each of those events to 5 minutes (300 seconds).&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;append&lt;/CODE&gt; those generated events to the results of your transaction search&lt;/LI&gt;
&lt;LI&gt;use the &lt;CODE&gt;concurrency&lt;/CODE&gt; command to get the concurrency at the start of every one of the combined set of events&lt;/LI&gt;
&lt;LI&gt;subtract 1 from every concurrency value&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Fri, 14 Dec 2012 00:36:55 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-12-14T00:36:55Z</dc:date>
    <item>
      <title>calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63561#M15693</link>
      <description>&lt;P&gt;Hi Splunk people.&lt;/P&gt;

&lt;P&gt;I am trying to map the number of concurrent transactions.&lt;BR /&gt;
This is not exactly the same than the concurrency command, that will show the concurrency at the beginning of the transaction. I want to show the concurrency on a span of 5 minutes like a timechart.&lt;/P&gt;

&lt;P&gt;base search for the transaction :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;id | transaction id startswith="start" endswith="stop" maxpause=3600 | table _time id duration&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Sample :&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
 # simple single transaction (A)&lt;BR /&gt;
2012-12-01 10:00:00 id=A start&lt;BR /&gt;
2012-12-01 10:10:00 id=A whatever&lt;BR /&gt;
2012-12-01 10:30:00 id=A stop&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;# 2 overlapping transactions (B and C)&lt;BR /&gt;
2012-12-01 11:00:00 id=B start&lt;BR /&gt;
2012-12-01 11:05:00 id=B whatever&lt;BR /&gt;
2012-12-01 11:10:00 id=C start&lt;BR /&gt;
2012-12-01 11:15:00 id=C whatever&lt;BR /&gt;
2012-12-01 11:20:00 id=C stop&lt;BR /&gt;
2012-12-01 11:35:00 id=B stop&lt;/P&gt;

&lt;P&gt;#same transactions restarting several time (D) &lt;BR /&gt;
2012-12-01 12:00:00 id=D start&lt;BR /&gt;
2012-12-01 12:10:00 id=D start&lt;BR /&gt;
2012-12-01 12:15:00 id=D whatever&lt;BR /&gt;
2012-12-01 12:20:00 id=D stop&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;the result should look like:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
2012-12-01 10:00:00 concurrency=1&lt;BR /&gt;
2012-12-01 10:05:00 concurrency=1&lt;BR /&gt;
2012-12-01 10:10:00 concurrency=1&lt;BR /&gt;
2012-12-01 10:15:00 concurrency=1&lt;BR /&gt;
2012-12-01 10:20:00 concurrency=0&lt;BR /&gt;
0&lt;BR /&gt;
0&lt;BR /&gt;
...&lt;BR /&gt;
0&lt;BR /&gt;
2012-12-01 11:00:00 concurrency=1&lt;BR /&gt;
2012-12-01 11:05:00 concurrency=1&lt;BR /&gt;
2012-12-01 11:10:00 concurrency=2&lt;BR /&gt;
2012-12-01 11:15:00 concurrency=2&lt;BR /&gt;
2012-12-01 11:20:00 concurrency=1&lt;BR /&gt;
2012-12-01 11:25:00 concurrency=1&lt;BR /&gt;
2012-12-01 11:30:00 concurrency=1&lt;BR /&gt;
2012-12-01 11:35:00 concurrency=0&lt;BR /&gt;
0&lt;BR /&gt;
0&lt;BR /&gt;
...&lt;BR /&gt;
0&lt;BR /&gt;
2012-12-01 12:00:00 concurrency=1&lt;BR /&gt;
2012-12-01 12:05:00 concurrency=1&lt;BR /&gt;
2012-12-01 12:10:00 concurrency=1&lt;BR /&gt;
2012-12-01 12:15:00 concurrency=1&lt;BR /&gt;
2012-12-01 12:20:00 concurrency=0&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Currently the result has gaps&lt;BR /&gt;
&lt;CODE&gt;id | transaction id startswith="start" endswith="stop" maxpause=3600 | table _time id duration | concurrency duration=duration | timechart span=5m max(concurrency)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://imgur.com/nECEl"&gt;&lt;IMG width="100%" src="http://i.imgur.com/nECEl.png" title="Hosted by imgur.com" alt="" /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63561#M15693</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-13T20:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63562#M15694</link>
      <description>&lt;P&gt;It looks to me like you can do something like that by adding&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bucket _time span=5m | chart count AS concurrency by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;though you don't get the exact k=v formatting in your example output.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 21:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63562#M15694</guid>
      <dc:creator>jspears</dc:creator>
      <dc:date>2012-12-13T21:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63563#M15695</link>
      <description>&lt;P&gt;you are incorrectly assuming that you are working with the result set.  The actual challenge is to generate what you see as the result set (at the bottom) from the transaction set you see at the top. &lt;BR /&gt;
Once you generate the result set, the rest is easy.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 21:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63563#M15695</guid>
      <dc:creator>fere</dc:creator>
      <dc:date>2012-12-13T21:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63564#M15696</link>
      <description>&lt;P&gt;Yannk,&lt;/P&gt;

&lt;P&gt;Try This:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;id | transaction id startswith="start" endswith="stop" maxpause=3600 |concurrency duration=duration|timechart span=5m max(concurrency) as concurrency|fillnull value=0 concurrency&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 21:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63564#M15696</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-12-13T21:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63565#M15697</link>
      <description>&lt;P&gt;Not enough the gaps between the transactions starts are still null.&lt;BR /&gt;
See the screenshot added to the question.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 23:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63565#M15697</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-13T23:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63566#M15698</link>
      <description>&lt;P&gt;My suggestion would be:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;use the &lt;CODE&gt;gentimes&lt;/CODE&gt; command to generate a set of events every 5 minutes over the relevant span&lt;/LI&gt;
&lt;LI&gt;use &lt;CODE&gt;eval&lt;/CODE&gt; to set the duration of each of those events to 5 minutes (300 seconds).&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;append&lt;/CODE&gt; those generated events to the results of your transaction search&lt;/LI&gt;
&lt;LI&gt;use the &lt;CODE&gt;concurrency&lt;/CODE&gt; command to get the concurrency at the start of every one of the combined set of events&lt;/LI&gt;
&lt;LI&gt;subtract 1 from every concurrency value&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 14 Dec 2012 00:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63566#M15698</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-12-14T00:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63567#M15699</link>
      <description>&lt;P&gt;As per direct advice from Gerald, here is the grail of the concurrency search.&lt;/P&gt;

&lt;P&gt;They were 2 paths :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;fill the holes with artificial events&lt;/STRONG&gt; , in order to have events every 5 min.
use the command | gentimes increment=5 in a sub search and append to the previous results.
Then do some magic&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;However the &lt;CODE&gt;gentimes&lt;/CODE&gt; scripted command do not exists on Storm, and this is for a Storm search.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;decompose the transaction in a start and an stop events&lt;/STRONG&gt;, then add a counter that increments (adding one for a start, removing one for a stop),  fill the gaps with &lt;CODE&gt;makecontinuous&lt;/CODE&gt;, and finally &lt;CODE&gt;streamstats&lt;/CODE&gt; the sum of the  counter for the concurrency_counter.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;of course some&lt;CODE&gt;makemv&lt;/CODE&gt; magic is still required to turn a single transaction into 2 events (start and stop)&lt;/P&gt;

&lt;PRE&gt;
id | eval mytime=_time 
| transaction id startswith="start" endswith="stop" 
| eval transactionid=id._time 
| stats min(mytime) AS start max(mytime) AS stop values(id) AS id values(duration) AS duration by transactionid 
| eval mytimeconcat="1_".start." -1_".stop 
| eval mytimemv=split(mytimeconcat," ") 
| mvexpand mytimemv  
| rex field=mytimemv "(?&lt;COUNTER&gt;(1|\-1))_(?&amp;lt;_time&amp;gt;\d+)" 
| table _time id counter 
| sort _time 
| bucket _time span=5m  
| makecontinuous _time span=5m
| streamstats sum(counter) AS concurrent_counter
| table _time concurrent_counter
&lt;/COUNTER&gt;&lt;/PRE&gt;

&lt;P&gt;see result &lt;/P&gt;

&lt;P&gt;&lt;A href="http://imgur.com/LxkR3"&gt;&lt;IMG width="100%" src="http://i.imgur.com/LxkR3.png" title="Hosted by imgur.com" alt="" /&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://imgur.com/rRMsb"&gt;&lt;IMG width="100%" src="http://i.imgur.com/rRMsb.png" title="Hosted by imgur.com" alt="" /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 01:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63567#M15699</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-14T01:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63568#M15700</link>
      <description>&lt;P&gt;Perfect, see detailed answer bellow, here are your 100karma point Sir.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 01:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63568#M15700</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-14T01:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63569#M15701</link>
      <description>&lt;P&gt;Fantastic question and answer&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 09:03:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63569#M15701</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-14T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63570#M15702</link>
      <description>&lt;P&gt;HI Yann, I am running into problem when following the instructions: &lt;BR /&gt;
I get an error when makecontinuoue is executed: Unexpected duplicate values in field '_time' have been detected.  I tried to just select one user_id and run the query for that one - to avoid the dup _time value which I was getting for this one user_id, I tried to adjust the stop time if duration is 0: after the mvexpand for this user, only 6 events are returned, yet after adding the last step (makecontinuous), it came back (tried it more than once) with the error The specified span would result in too many (&amp;gt;50000) rows.&lt;BR /&gt;
thx&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63570#M15702</guid>
      <dc:creator>fere</dc:creator>
      <dc:date>2020-09-28T12:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63571#M15703</link>
      <description>&lt;P&gt;Can we get details on the code that supports the "counter" field?&lt;/P&gt;

&lt;P&gt;Also, has anyone developed the query using "gentimes"?&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63571#M15703</guid>
      <dc:creator>rmarcum</dc:creator>
      <dc:date>2015-03-17T17:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63572#M15704</link>
      <description>&lt;P&gt;Example would help a lot to digest this&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63572#M15704</guid>
      <dc:creator>giovere</dc:creator>
      <dc:date>2015-04-21T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63573#M15705</link>
      <description>&lt;P&gt;Proposal for the gentimes approach:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mysourcetype
| TRANSACTION callid maxspan=60m startswith(event=ENTERQUEUE) 
| APPEND [| GENTIMES start=0 end=1 increment=1m | EVAL _time=starttime | EVAL duration=60 | FIELDS _time, duration] 
| CONCURRENCY duration=duration output=concurrency 
| TIMECHART span=1m max(concurrency) AS operators
| EVAL operators=operators-1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Caution, this approach doesn't work in real-time mode due to the APPEND command.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 09:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63573#M15705</guid>
      <dc:creator>gtorrent</dc:creator>
      <dc:date>2015-05-13T09:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63574#M15706</link>
      <description>&lt;P&gt;Hi @yannK, &lt;BR /&gt;
I understand this is a pretty old thread, but I'm having similar problem and trying to follow your query. Could you share some idea how to calculate the &lt;CODE&gt;counter&lt;/CODE&gt; field? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 02:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63574#M15706</guid>
      <dc:creator>jackie_1001</dc:creator>
      <dc:date>2018-05-14T02:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63575#M15707</link>
      <description>&lt;P&gt;Can someone please translate the &amp;lt;em&amp;gt; portions of this syntax from &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1357"&gt;@yannK&lt;/a&gt;:&lt;BR /&gt;
    id | eval mytime=&amp;lt;em&amp;gt;time &lt;BR /&gt;
    | transaction id startswith="start" endswith="stop" &lt;BR /&gt;
    | eval transactionid=id./&amp;lt;em&amp;gt;time &lt;BR /&gt;
    | stats min(mytime) AS start max(mytime) AS stop values(id) AS id values(duration) AS duration by transactionid &lt;BR /&gt;
    | eval mytimeconcat="1&amp;lt;/em&amp;gt;".start." -1&amp;lt;/em&amp;gt;".stop &lt;BR /&gt;
    | eval mytimemv=split(mytimeconcat," ") &lt;BR /&gt;
    | mvexpand mytimemv&lt;BR /&gt;&lt;BR /&gt;
    | rex field=mytimemv "(?(1|-1))_(?&amp;lt;_time&amp;gt;\d+)" &lt;BR /&gt;
    | table _time id counter &lt;BR /&gt;
    | sort _time &lt;BR /&gt;
    | bucket _time span=5m&lt;BR /&gt;&lt;BR /&gt;
    | makecontinuous _time span=5m&lt;BR /&gt;
    | streamstats sum(counter) AS concurrent_counter&lt;BR /&gt;
    | table _time concurrent_counter&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63575#M15707</guid>
      <dc:creator>landster</dc:creator>
      <dc:date>2020-09-29T22:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63576#M15708</link>
      <description>&lt;P&gt;The counter field is constructed from the regex as below:&lt;/P&gt;

&lt;PRE&gt;| rex field=mytimemv "(?(1|-1))_(?&amp;lt;_time&amp;gt;\d+)" &lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 01:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63576#M15708</guid>
      <dc:creator>jaime_ramirez</dc:creator>
      <dc:date>2018-11-15T01:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: calculate concurrency of transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63577#M15709</link>
      <description>&lt;P&gt;The &lt;EM&gt; portions are just underscores. The search would be as follows with the &lt;EM&gt; replaced and fixing the counter field missing:&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;PRE&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;
id | eval mytime=&lt;EM&gt;time &lt;BR /&gt;
| transaction id startswith="start" endswith="stop" &lt;BR /&gt;
| eval transactionid=id._time &lt;BR /&gt;
| stats min(mytime) AS start max(mytime) AS stop values(id) AS id values(duration) AS duration by transactionid &lt;BR /&gt;
| eval mytimeconcat="1&lt;/EM&gt;".start." -1_".stop &lt;BR /&gt;
| eval mytimemv=split(mytimeconcat," ") &lt;BR /&gt;
| mvexpand mytimemv &lt;BR /&gt;
| rex field=mytimemv "(?(1|-1))_(?&amp;lt;_time&amp;gt;\d+)" &lt;BR /&gt;
| table _time id counter &lt;BR /&gt;
| sort _time &lt;BR /&gt;
| bucket _time span=5m &lt;BR /&gt;
| makecontinuous _time span=5m&lt;BR /&gt;
| streamstats sum(counter) AS concurrent_counter&lt;BR /&gt;
| table _time concurrent_counter&lt;BR /&gt;
&lt;/EM&gt;&lt;/EM&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Cheers!!!&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-concurrency-of-transactions/m-p/63577#M15709</guid>
      <dc:creator>jaime_ramirez</dc:creator>
      <dc:date>2020-09-29T22:03:53Z</dc:date>
    </item>
  </channel>
</rss>

