<?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 Access Log Graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119373#M32018</link>
    <description>&lt;P&gt;Trying to create a stacked bar graph of my Apache access logs.&lt;/P&gt;

&lt;P&gt;Currently I'm using a timechart to get the avg time in seconds (%T) by host as seen below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apache_logs sourcetype=access_combined | rex "\"\\s+(?&amp;lt;seconds&amp;gt;\d+)\/(?&amp;lt;microseconds&amp;gt;\d+) \d+ \d+" | fields + _time, host, seconds | fields - _raw | timechart span=30m avg(seconds) by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to add the top 5 uri's during each 30 minute span so I can see both the avg time each of my hosts took to serve a request as well as the top 5 most costly uri's.&lt;/P&gt;

&lt;P&gt;Was hoping someone could help me modify my original search to add in the top 5 uri_paths or give me some direction to go in in order to build an entirely new one.&lt;/P&gt;

&lt;P&gt;I tried using the following documentation to build my graph but could not get it to work.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Search/Chartmultipledataseries"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Search/Chartmultipledataseries&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2014 16:06:49 GMT</pubDate>
    <dc:creator>sir_reel</dc:creator>
    <dc:date>2014-04-03T16:06:49Z</dc:date>
    <item>
      <title>Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119373#M32018</link>
      <description>&lt;P&gt;Trying to create a stacked bar graph of my Apache access logs.&lt;/P&gt;

&lt;P&gt;Currently I'm using a timechart to get the avg time in seconds (%T) by host as seen below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apache_logs sourcetype=access_combined | rex "\"\\s+(?&amp;lt;seconds&amp;gt;\d+)\/(?&amp;lt;microseconds&amp;gt;\d+) \d+ \d+" | fields + _time, host, seconds | fields - _raw | timechart span=30m avg(seconds) by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to add the top 5 uri's during each 30 minute span so I can see both the avg time each of my hosts took to serve a request as well as the top 5 most costly uri's.&lt;/P&gt;

&lt;P&gt;Was hoping someone could help me modify my original search to add in the top 5 uri_paths or give me some direction to go in in order to build an entirely new one.&lt;/P&gt;

&lt;P&gt;I tried using the following documentation to build my graph but could not get it to work.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Search/Chartmultipledataseries"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Search/Chartmultipledataseries&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 16:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119373#M32018</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2014-04-03T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119374#M32019</link>
      <description>&lt;P&gt;list of top 5 uri_paths will be text field and it won't show up in graphs.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 18:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119374#M32019</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-03T18:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119375#M32020</link>
      <description>&lt;P&gt;Ok, I assume this could be done using a dashboard which I would be fine with as well.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 18:46:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119375#M32020</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2014-04-03T18:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119376#M32021</link>
      <description>&lt;P&gt;You can have graph for your timechart for avg(seconds) and table to show top 5 uri_path for every 30 min period (in dashboard) will that work for you?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 19:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119376#M32021</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-03T19:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119377#M32022</link>
      <description>&lt;P&gt;It will be what I resort to if no one else can show me how I can combine the 2 together. I would prefer to have it combined as it will be cleaner and easier to quickly hover over and see what uri's were being served during slower periods.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 20:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119377#M32022</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2014-04-03T20:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119378#M32023</link>
      <description>&lt;P&gt;See if this works/suits your requirement. Its basically taking your query (with fields _time, host, avgSecs) and appending top 5 uri for same _time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apache_logs sourcetype=access_combined | rex "\"\\s+(?&amp;lt;seconds&amp;gt;\d+)\/(?&amp;lt;microseconds&amp;gt;\d+) \d+ \d+" | bucket span=30m _time | stats avg(seconds) as avgSecs by host,_time 
| appendcols [search index=apache_logs sourcetype=access_combined | bucket span=30m _time  | top limit=5 uri_path by _time,host | fields - count,percent | stats values(uri_path) as topURIs by _time, host] 
| nomv topURIs | eval Host_TopURIs=host + ", Top URIs:  " + topURIs
| timechart span=30m avg(avgSecs) by Host_TopURIs 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Apr 2014 21:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119378#M32023</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-03T21:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119379#M32024</link>
      <description>&lt;P&gt;This is definitely the direction I want to go in, my 2 biggest concerns right now are that the top uri's are by count and not avg time (in seconds), as well as I would like each uri to be a segment on the column instead of having 2 columns with with a list of uri's as the description. Essentially I don't want to combine the uri's into one field as I would like to use the stack option to graph them. I'm working on modifying the query to accomplish the above but would like to hear your thoughts.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2014 19:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119379#M32024</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2014-04-07T19:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119380#M32025</link>
      <description>&lt;P&gt;Just to be sure, you want top 5 uri_path based on Avg(seconds) and each uri_path should be a separate column with corresponding avg(seconds) value so that you can graph them in stacked manner?&lt;BR /&gt;
e.g. output&lt;BR /&gt;
_time uri_path1 uri_path2 uri_path3 uri_path4 uri_path5&lt;BR /&gt;
xxx    1.2         2.4      3.9      4.5         6.3&lt;BR /&gt;
...    ...        ....      ....     ....        ....&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119380#M32025</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119381#M32026</link>
      <description>&lt;P&gt;Sorry for the delay in getting back with you. To clarify my issue I currently have 2 graphs, 1 for avg(secs) by uri_path and another for avg(secs) by host. I was hoping to combine these 2 into one graph/dashboard that shows each hosts avg time in seconds as well as the top 5 uri_paths based on avg(secs) during that same period. So on the graph you would have 2 columns every 30 minutes representing the avg(secs) by host and each of those columns would have 5 segments representing the top 5 uri_paths by avg(secs). Hopefully that makes some sense, appreciate all the help so far.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119381#M32026</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2020-09-28T16:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access Log Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119382#M32027</link>
      <description>&lt;P&gt;chart avg(sec) over host by uri_path try this&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 20:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Access-Log-Graph/m-p/119382#M32027</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-14T20:57:49Z</dc:date>
    </item>
  </channel>
</rss>

