<?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: Statistics: Creating Histogram out of a time bucketed Statictic in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134753#M27715</link>
    <description>&lt;P&gt;Hi oldtester,&lt;/P&gt;

&lt;P&gt;Try with  &lt;CODE&gt;index= api1|bucket _time span=1h|stats avg(ResponseTime) by _time |rename  avg(ResponseTime) as X|stats count(X) by _time&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2015 15:49:13 GMT</pubDate>
    <dc:creator>ngatchasandra</dc:creator>
    <dc:date>2015-06-03T15:49:13Z</dc:date>
    <item>
      <title>Statistics: Creating Histogram out of a time bucketed Statictic</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134752#M27714</link>
      <description>&lt;P&gt;Excited to post my first Splunk question.&lt;/P&gt;

&lt;P&gt;I want to perform statistical analysis on API response time that I get from our app server log.&lt;/P&gt;

&lt;P&gt;The log format is:&lt;BR /&gt;
timestamp1 API=&amp;lt;api1&amp;gt; ResponseTime=&amp;lt;R1&amp;gt;&lt;BR /&gt;
timestamp2 API=&amp;lt;api2&amp;gt; ResponseTime=&amp;lt;R2&amp;gt;&lt;BR /&gt;
timestamp3 API=&amp;lt;api3&amp;gt; ResponseTime=&amp;lt;R3&amp;gt;&lt;BR /&gt;
timestamp1 API=&amp;lt;api1&amp;gt; ResponseTime=&amp;lt;R4&amp;gt;&lt;BR /&gt;
..&lt;BR /&gt;
..&lt;BR /&gt;
For a week of data I want to plot the histogram of the hourly average of ResponseTime for api1.&lt;/P&gt;

&lt;P&gt;I did the following query:&lt;BR /&gt;
index=&amp;lt;index&amp;gt; api1|bucket _time span=1h|stats avg(ResponseTime) by _time&lt;/P&gt;

&lt;P&gt;Now how do I take the result of the above query and build a histogram?&lt;/P&gt;

&lt;P&gt;I did the following:&lt;BR /&gt;
index=&amp;lt;index&amp;gt; api1|bucket _time span=1h|stats avg(ResponseTime) by _time as X|stats count(X)&lt;/P&gt;

&lt;P&gt;But this query seems to be wrong.&lt;/P&gt;

&lt;P&gt;Could you please recommend the correct query?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134752#M27714</guid>
      <dc:creator>oldtester</dc:creator>
      <dc:date>2015-06-03T15:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics: Creating Histogram out of a time bucketed Statictic</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134753#M27715</link>
      <description>&lt;P&gt;Hi oldtester,&lt;/P&gt;

&lt;P&gt;Try with  &lt;CODE&gt;index= api1|bucket _time span=1h|stats avg(ResponseTime) by _time |rename  avg(ResponseTime) as X|stats count(X) by _time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134753#M27715</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-06-03T15:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics: Creating Histogram out of a time bucketed Statictic</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134754#M27716</link>
      <description>&lt;P&gt;Hi ngatchasandra,&lt;/P&gt;

&lt;P&gt;It is not resulting in a series of values to plot a histogram. It is returning a single number(count).&lt;BR /&gt;
What I am looking for is a frequency chart of hoourly average values .&lt;/P&gt;

&lt;P&gt;I did the following:&lt;BR /&gt;
index= api1|bucket _time span=1h|stats avg(ResponseTime) by _time |rename avg(ResponseTime) as X|stats values(X)&lt;BR /&gt;
It is indeed giving a set of values for the average. Now, how in the search I do a frequency chart of these values?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134754#M27716</guid>
      <dc:creator>oldtester</dc:creator>
      <dc:date>2015-06-03T16:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics: Creating Histogram out of a time bucketed Statictic</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134755#M27717</link>
      <description>&lt;P&gt;Try now with  &lt;CODE&gt;index= api1|bucket _time span=1h|stats avg(ResponseTime) by _time |rename avg(ResponseTime) as X|stats values(X)|chart count by values(x)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134755#M27717</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-06-03T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics: Creating Histogram out of a time bucketed Statictic</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134756#M27718</link>
      <description>&lt;P&gt;Yes, try with &lt;CODE&gt;index= api1|bucket _time span=1h|stats avg(ResponseTime) by _time |rename avg(ResponseTime) as X|stats values(X)|chart count by values(x)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134756#M27718</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-06-03T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics: Creating Histogram out of a time bucketed Statictic</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134757#M27719</link>
      <description>&lt;P&gt;Looks like it is working!. Just added bins=100 to your query.&lt;BR /&gt;
index= api1|bucket _time span=1h|stats avg(ResponseTime) by _time |rename avg(ResponseTime) as X|stats values(X)|chart count by values(x) bins=100&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 18:31:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134757#M27719</guid>
      <dc:creator>oldtester</dc:creator>
      <dc:date>2015-06-03T18:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics: Creating Histogram out of a time bucketed Statictic</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134758#M27720</link>
      <description>&lt;P&gt;Please, you did not give me points . Perhaps it is to you even you have to give the points. Can you correct it?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Statistics-Creating-Histogram-out-of-a-time-bucketed-Statictic/m-p/134758#M27720</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-06-04T12:48:07Z</dc:date>
    </item>
  </channel>
</rss>

