<?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 How to get concurrent transactions for multiple hosts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185914#M187007</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm having trouble getting concurrent events by host.&lt;/P&gt;

&lt;P&gt;I can get concurrent key transactions for a single host, and it appears accurate:&lt;BR /&gt;
* sourcetype="*iis" Target_Type="key" host="na5" | concurrency duration=TimeTaken | timechart span=1h count(concurrency)&lt;/P&gt;

&lt;P&gt;But when I try to get this for all hosts (Grouped by host), it’s comparing the data on all instances, artificially inflating number of concurrent transactions per host:&lt;BR /&gt;
* sourcetype="*iis" Target_Type="key"  | concurrency duration=TimeTaken | timechart span=1h count(concurrency) by host&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Aug 2014 22:04:17 GMT</pubDate>
    <dc:creator>drmed</dc:creator>
    <dc:date>2014-08-18T22:04:17Z</dc:date>
    <item>
      <title>How to get concurrent transactions for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185914#M187007</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm having trouble getting concurrent events by host.&lt;/P&gt;

&lt;P&gt;I can get concurrent key transactions for a single host, and it appears accurate:&lt;BR /&gt;
* sourcetype="*iis" Target_Type="key" host="na5" | concurrency duration=TimeTaken | timechart span=1h count(concurrency)&lt;/P&gt;

&lt;P&gt;But when I try to get this for all hosts (Grouped by host), it’s comparing the data on all instances, artificially inflating number of concurrent transactions per host:&lt;BR /&gt;
* sourcetype="*iis" Target_Type="key"  | concurrency duration=TimeTaken | timechart span=1h count(concurrency) by host&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 22:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185914#M187007</guid>
      <dc:creator>drmed</dc:creator>
      <dc:date>2014-08-18T22:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get concurrent transactions for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185915#M187008</link>
      <description>&lt;P&gt;Concurrency doesn't have by clause. You may have to try something like this&lt;BR /&gt;
&lt;A href="http://"&gt;http://answers.splunk.com/answers/7269/how-to-calculate-concurrent-transactions-grouped-with-a-particular-field&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 22:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185915#M187008</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-18T22:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get concurrent transactions for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185916#M187009</link>
      <description>&lt;P&gt;Thanks. Hope we can get concurrency by clause soon. This seems like a very common use case. For now, we are going to use a dashboard with host selection in a dropdown.&lt;/P&gt;

&lt;P&gt;I tried to get the query in strive's link above working. Unfortunately it doesn't work for our data. A lot of assumptions go into how your Splunk data is setup (start / stop / other transactions) to make this work:&lt;BR /&gt;
sourcetype="*traceappender" | eval counter = if(searchmatch("Module.Begin"),1,-1) | sort 0 + _time | streamstats sum(counter) as concurrency by host | timechart span=1h count(concurrency) by host&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 23:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185916#M187009</guid>
      <dc:creator>drmed</dc:creator>
      <dc:date>2014-08-18T23:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get concurrent transactions for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185917#M187010</link>
      <description>&lt;P&gt;This post has the best reply IMO&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/153299/bulletproof-approach-for-charting-concurrency-with-split-by-field.html"&gt;http://answers.splunk.com/answers/153299/bulletproof-approach-for-charting-concurrency-with-split-by-field.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 11:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185917#M187010</guid>
      <dc:creator>manus</dc:creator>
      <dc:date>2014-10-10T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get concurrent transactions for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185918#M187011</link>
      <description>&lt;P&gt;I agree ... I repeatedly have had to use a cludge to get &lt;EM&gt;concurrency ... by ...&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 10:22:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-concurrent-transactions-for-multiple-hosts/m-p/185918#M187011</guid>
      <dc:creator>JeToJedno</dc:creator>
      <dc:date>2017-04-06T10:22:54Z</dc:date>
    </item>
  </channel>
</rss>

