<?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: Average URI hits per minute, graphed. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28334#M5607</link>
    <description>&lt;P&gt;Sorry if I'm assuming incorrectly, but change it to line chart so you can see the four URIs listed as lines, rather than discrete bars.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2011 04:35:25 GMT</pubDate>
    <dc:creator>tedder</dc:creator>
    <dc:date>2011-01-19T04:35:25Z</dc:date>
    <item>
      <title>Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28329#M5602</link>
      <description>&lt;P&gt;Scraping my Apache access log I want to find the average request per minute for each of four URI's.  Here is my access log (keep in mind there is more in the log than just the four URIs):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;192.168.0.1 - - [18/Jan/2011:10:10:10 -0700] "POST /GuiSapi/partner/manageOrders.seam HTTP/1.1" 200 526 "https://mysite.foo.com/GuiSapi/partner/manageOrders.seam" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)" "JSESSIONID=8AA;"
192.168.0.1 - - [18/Jan/2011:10:11:10 -0700] "POST /GuiSapi/home.seam HTTP/1.1" 200 526 "https://mysite.foo.com/GuiSapi/home.seam" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)" "JSESSIONID=8AA;"
192.168.0.1 - - [18/Jan/2011:10:13:10 -0700] "POST /GuiSapi/partner/viewProducts.seam HTTP/1.1" 200 526 "https://mysite.foo.com/GuiSapi/partner/viewProducts.seam" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)" "JSESSIONID=8AA;"
192.168.0.1 - - [18/Jan/2011:10:35:10 -0700] "POST /GuiSapi/cs/returns.seam HTTP/1.1" 200 526 "https://mysite.foo.com/GuiSapi/cs/returns.seam" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)" "JSESSIONID=8AA;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm able to get the graph generated just fine using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="ppa*" (uri="/GuiSapi/home.seam" OR uri="/GuiSapi/partner/viewProducts.seam" OR uri="/GuiSapi/partner/manageOrders.seam" OR uri="/GuiSapi/cs/returns.seam") | timechart count by uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I'm not sure what I need to do to get the average count based on a string.  I see examples for averages on numbers - but not what I need.  &lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 01:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28329#M5602</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2011-01-19T01:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28330#M5603</link>
      <description>&lt;P&gt;I think you need to build up a count per minute, then average it. Here's what I used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="ppa*" (uri="/GuiSapi/home.seam" OR uri="/GuiSapi/partner/viewProducts.seam" OR uri="/GuiSapi/partner/manageOrders.seam" OR uri="/GuiSapi/cs/returns.seam") | bucket span=1m _raw | stats count as peruri_count by uri | stats avg(peruri_count) by uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can build that up incrementally to see if it's working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="ppa*" (uri="/GuiSapi/home.seam" OR uri="/GuiSapi/partner/viewProducts.seam" OR uri="/GuiSapi/partner/manageOrders.seam" OR uri="/GuiSapi/cs/returns.seam") | bucket span=1m _raw | stats count as peruri_count by uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this case, you should see one row per minute and one column per URI.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 02:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28330#M5603</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2011-01-19T02:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28331#M5604</link>
      <description>&lt;P&gt;Hmm, not quite.  With the second example it's just printing out four rows (one with each URI) and two columns (uri and peruri_count).  &lt;/P&gt;

&lt;P&gt;I'd like to be able to send these to timechart() if possible and have each URI be a line on the graph with the avg between two intervals (perhaps defined in timechart() with span=1m?) plotted.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 02:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28331#M5604</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2011-01-19T02:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28332#M5605</link>
      <description>&lt;P&gt;Your second query should be correct, then. Are you looking at "advanced charting" to display this?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 03:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28332#M5605</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2011-01-19T03:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28333#M5606</link>
      <description>&lt;P&gt;Well at first I was doing the standard report view but I just tried advanced charting and the results were the same.  The resulting charts are only showing one column for each URI with the values of (I assume) the count() function.  That's fine for summarising the data over the specified search range but not for trending.  Maybe that's what is intended and I'm just not grasping it correctly?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 04:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28333#M5606</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2011-01-19T04:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28334#M5607</link>
      <description>&lt;P&gt;Sorry if I'm assuming incorrectly, but change it to line chart so you can see the four URIs listed as lines, rather than discrete bars.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 04:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28334#M5607</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2011-01-19T04:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28335#M5608</link>
      <description>&lt;P&gt;I uploaded an image to ImageShack so I can clarify what I'm after.  &lt;A href="http://img838.imageshack.us/i/splunk.png/"&gt;http://img838.imageshack.us/i/splunk.png/&lt;/A&gt;  The top image is what I want except in that image the results are generated by the sum of events.  I'm looking more for the average.  The second image is what is generated from the second query.  Sorry about making this so difficult.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 05:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28335#M5608</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2011-01-19T05:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28336#M5609</link>
      <description>&lt;P&gt;You want the average of what? Four lines, each one is the average of what? Or one line that is the average of the four URIs?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 05:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28336#M5609</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2011-01-19T05:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28337#M5610</link>
      <description>&lt;P&gt;One line for each url.  And instead of graphing the sum of the number of requests between each _bucket() I get the average of the number of requests between each _bucket().&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 21:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28337#M5610</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2011-01-19T21:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Average URI hits per minute, graphed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28338#M5611</link>
      <description>&lt;P&gt;Working with Splunk support this query is exactly what I need.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="ppa*" (uri="/GuiSapi/home.seam" OR uri="/GuiSapi/partner/viewProducts.seam" OR uri="/GuiSapi/partner/manageOrders.seam" OR uri="/GuiSapi/cs/returns.seam") | bucket _time span=1m | stats count AS PerMinCount by _time uri | timechart span=10m per_minute(PerMinCount) by uri
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jan 2011 21:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-URI-hits-per-minute-graphed/m-p/28338#M5611</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2011-01-25T21:21:27Z</dc:date>
    </item>
  </channel>
</rss>

