<?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 Formatting a Search for a Stacked Bar Graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Formatting-a-Search-for-a-Stacked-Bar-Graph/m-p/32746#M6871</link>
    <description>&lt;P&gt;I've been reading into the splunk documentation, but I'm having trouble formatting a search so that I can use it in a stacked bar graph&lt;/P&gt;

&lt;P&gt;Among other data, in this file, some events are logged as such:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
%timestamp% - UArateLimit userAgent="%userAgent%" COUNT=%count%&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Basically, for each day (there may be multiple logs for each useragent per day, so the final bar graph should have summed counts), I would like to stack the separate useragents and based on their counts. &lt;/P&gt;

&lt;P&gt;How can I set up the search so that this is is possible? Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2013 13:55:38 GMT</pubDate>
    <dc:creator>zachary_hickman</dc:creator>
    <dc:date>2013-05-14T13:55:38Z</dc:date>
    <item>
      <title>Formatting a Search for a Stacked Bar Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Formatting-a-Search-for-a-Stacked-Bar-Graph/m-p/32746#M6871</link>
      <description>&lt;P&gt;I've been reading into the splunk documentation, but I'm having trouble formatting a search so that I can use it in a stacked bar graph&lt;/P&gt;

&lt;P&gt;Among other data, in this file, some events are logged as such:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
%timestamp% - UArateLimit userAgent="%userAgent%" COUNT=%count%&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Basically, for each day (there may be multiple logs for each useragent per day, so the final bar graph should have summed counts), I would like to stack the separate useragents and based on their counts. &lt;/P&gt;

&lt;P&gt;How can I set up the search so that this is is possible? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 13:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Formatting-a-Search-for-a-Stacked-Bar-Graph/m-p/32746#M6871</guid>
      <dc:creator>zachary_hickman</dc:creator>
      <dc:date>2013-05-14T13:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a Search for a Stacked Bar Graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Formatting-a-Search-for-a-Stacked-Bar-Graph/m-p/32747#M6872</link>
      <description>&lt;P&gt;I think you are looking for something like below, based on your data,  with 'count' and 'useragent' being your fields. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | bucket _time span=1d |stats count(Count) by userAgent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2013 14:21:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Formatting-a-Search-for-a-Stacked-Bar-Graph/m-p/32747#M6872</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2013-05-14T14:21:59Z</dc:date>
    </item>
  </channel>
</rss>

