<?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 plot requests per second for each service on a single timechart irrespective of the span chosen in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230603#M68371</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm new to Splunk and I'm looking for some help with plotting a timechart to show requests per sec. Thanks in advance. &lt;/P&gt;

&lt;P&gt;I currently have a dashboard panel that shows transactions (or requests)/second. The user chooses the time range and span from a drop-down and TPS is plotted for that time range. This is the search I'm using. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search string | timechart span=$tok_span$ count | timechart per_second(count) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works great, but the search string returns all services grouped under a certain category that is filtered by the url string.&lt;/P&gt;

&lt;P&gt;Now I need to plot the same metric (TPS) for each service (and there is like 10 of them). I have an eventtype created for each service. &lt;/P&gt;

&lt;P&gt;My problem is timechart per_second() works only for a single integer value count, but I want to be able to plot this for each service on the same timechart. &lt;/P&gt;

&lt;P&gt;Any thoughts are greatly appreciated. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 18:59:05 GMT</pubDate>
    <dc:creator>pdpsplunk100</dc:creator>
    <dc:date>2016-08-16T18:59:05Z</dc:date>
    <item>
      <title>How to plot requests per second for each service on a single timechart irrespective of the span chosen</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230603#M68371</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm new to Splunk and I'm looking for some help with plotting a timechart to show requests per sec. Thanks in advance. &lt;/P&gt;

&lt;P&gt;I currently have a dashboard panel that shows transactions (or requests)/second. The user chooses the time range and span from a drop-down and TPS is plotted for that time range. This is the search I'm using. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search string | timechart span=$tok_span$ count | timechart per_second(count) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works great, but the search string returns all services grouped under a certain category that is filtered by the url string.&lt;/P&gt;

&lt;P&gt;Now I need to plot the same metric (TPS) for each service (and there is like 10 of them). I have an eventtype created for each service. &lt;/P&gt;

&lt;P&gt;My problem is timechart per_second() works only for a single integer value count, but I want to be able to plot this for each service on the same timechart. &lt;/P&gt;

&lt;P&gt;Any thoughts are greatly appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 18:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230603#M68371</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-16T18:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot requests per second for each service on a single timechart irrespective of the span chosen</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230604#M68372</link>
      <description>&lt;P&gt;You say timechart is only working for a single integer value count, but that's not quite true. Based on your description, you should be able to use a 'by' grouping clause:&lt;BR /&gt;
&lt;CODE&gt;... timechart span=$tok_span$ count by service&lt;/CODE&gt;&lt;BR /&gt;
Or am I misunderstanding what you are trying to achieve?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 19:13:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230604#M68372</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-08-16T19:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot requests per second for each service on a single timechart irrespective of the span chosen</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230605#M68373</link>
      <description>&lt;P&gt;Sorry maybe I was not clear.  I can do by on the first timechart command and it shows me the timechart by service for the span selected. So if the time range selected was say 4 hours the default span I think is 1 min and so the count is per min but the metric I'm looking for is transactions per second. &lt;/P&gt;

&lt;P&gt;I'm not able to do timechart per_second(count) by eventtype &lt;/P&gt;

&lt;P&gt;If I instead just use 1 timechart command after the search like below the # events returned is too high and so gets truncated for a larger window. &lt;/P&gt;

&lt;P&gt;search | timechart span=1s  count    &lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 19:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230605#M68373</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-16T19:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot requests per second for each service on a single timechart irrespective of the span chosen</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230606#M68374</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search string | bucket span=$tok_span$ _time | stats count by _time eventtype| timechart per_second(count)  by eventtypye
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Aug 2016 20:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230606#M68374</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-16T20:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot requests per second for each service on a single timechart irrespective of the span chosen</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230607#M68375</link>
      <description>&lt;P&gt;Does exactly what I was looking for. Thanks a bunch! The only thing is, its slow to load when the time range is &amp;gt; 4 hours. I came across summary indexing which may help with performance I think. I will try to explore that. But this is great, thanks again.  &lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 21:08:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-requests-per-second-for-each-service-on-a-single/m-p/230607#M68375</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-16T21:08:37Z</dc:date>
    </item>
  </channel>
</rss>

