<?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: Concurrency by .................... in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82622#M181933</link>
    <description>&lt;P&gt;i used this answers to get a concurrency by syntax:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/153299/bulletproof-approach-for-charting-concurrency-with-split-by-field.html"&gt;https://answers.splunk.com/answers/153299/bulletproof-approach-for-charting-concurrency-with-split-by-field.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;i tweaked mine a bit, using &lt;CODE&gt;timechart span=1h limit=0&lt;/CODE&gt;. the data i had, the first approach was perfect, as I wasn't missing any major gaps to have a problem with filldown.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 14:34:57 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-04-06T14:34:57Z</dc:date>
    <item>
      <title>Concurrency by ....................</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82617#M181928</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have stream logs for five channels (currently may be more in future) and I need to calculate the concurrency of each channels. Any idea how to do it ?&lt;/P&gt;

&lt;P&gt;Currently I do individual searches for each channels.&lt;/P&gt;

&lt;P&gt;For eg:...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="stream_logs" *ch_101* | concurreny duration=x_duration | timechart span=5min max(concurrency)

sourcetype="stream_logs" *ch_102* | concurreny duration=x_duration | timechart span=5min max(concurrency)

............................... etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want do it in one single search. &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;kkn&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2012 02:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82617#M181928</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2012-06-25T02:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency by ....................</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82618#M181929</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="stream_logs" *ch_101*  OR *ch_102* OR *ch_103*
| rex "(?P&amp;lt;channel&amp;gt;ch_\d{3})"
| concurreny duration=x_duration 
| timechart span=5min max(concurrency) by channel
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above assumes that there is no field for the channel already defined. If there is a field already, you could use it instead of the rex command. Also, if you don't want to put in a whole series of "ORs", you could try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="stream_logs" *ch_* 
| regex _raw=".*ch_\d{3}.*"
| rex "(?P&amp;lt;channel&amp;gt;ch_\d{3})"
| concurreny duration=x_duration 
| timechart span=5min max(concurrency) by channel
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The regex command will select only events that have the pattern ch_DDD where DDD is any 3 digits.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2012 04:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82618#M181929</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-25T04:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency by ....................</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82619#M181930</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for your reply. This wont work as when the concurrency is calculated, the field "concurrency" considers all five channels streaming simultaneously. To be precise if the five channels are streaming (say ch1 to ch5), the above search result will give concurrency of five. But actually the concurrency should be "1" for each individual channels, which is what I want. So time charting the field concurrency wont provide the concurrency for individual channels requests.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;KK&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 23:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82619#M181930</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2012-07-16T23:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency by ....................</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82620#M181931</link>
      <description>&lt;P&gt;Looks like this would be an awesome feature request...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 04:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82620#M181931</guid>
      <dc:creator>assaphmehr</dc:creator>
      <dc:date>2012-07-18T04:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency by ....................</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82621#M181932</link>
      <description>&lt;P&gt;I had the same problem, and came up with a cludge to work it.  In your case, something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="stream_logs" *ch_* 
  | rex "(?P&amp;lt;channel&amp;gt;ch_\d{3})"
  | appendpipe [ where channel="ch101" | concurrency duration=x_duration | table _time, channel, identifier, concurrency ]
  | appendpipe [ where channel="ch102" | concurrency duration=x_duration | table _time, channel, identifier, concurrency ]
  | appendpipe [ where channel="ch103" | concurrency duration=x_duration | table _time, channel, identifier, concurrency ]
  | appendpipe [ where channel="ch104" | concurrency duration=x_duration | table _time, channel, identifier, concurrency ]
  | appendpipe [ where channel="ch105" | concurrency duration=x_duration | table _time, channel, identifier, concurrency ]
  | timechart span=5min max(concurrency) BY channel
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is nasty, and needs editing every time there's a new channel, but it works.&lt;/P&gt;

&lt;P&gt;You can add a catch-all &lt;EM&gt;appendpipe&lt;/EM&gt; for concurrency for anything not otherwise identified (good for detecting change in the number of channels), or a &lt;EM&gt;where&lt;/EM&gt; line to drop anything which doesn;t have a concurrency, or a &lt;EM&gt;stats&lt;/EM&gt; line to merge the concurrencies back into the transaction they're from (or add more fields into the &lt;EM&gt;table&lt;/EM&gt; commands).&lt;/P&gt;

&lt;P&gt;It would be much better if there was a *concurrency ... BY * command&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 10:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82621#M181932</guid>
      <dc:creator>JeToJedno</dc:creator>
      <dc:date>2017-04-06T10:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency by ....................</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82622#M181933</link>
      <description>&lt;P&gt;i used this answers to get a concurrency by syntax:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/153299/bulletproof-approach-for-charting-concurrency-with-split-by-field.html"&gt;https://answers.splunk.com/answers/153299/bulletproof-approach-for-charting-concurrency-with-split-by-field.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;i tweaked mine a bit, using &lt;CODE&gt;timechart span=1h limit=0&lt;/CODE&gt;. the data i had, the first approach was perfect, as I wasn't missing any major gaps to have a problem with filldown.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 14:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82622#M181933</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-06T14:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency by ....................</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82623#M181934</link>
      <description>&lt;P&gt;The link is not working anymore and I was not able to find that answer by keywords anymore. Does anyone have a working link, by any chance?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Concurrency-by/m-p/82623#M181934</guid>
      <dc:creator>eregon</dc:creator>
      <dc:date>2019-07-01T13:19:46Z</dc:date>
    </item>
  </channel>
</rss>

