<?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 Help with time chart search that accumulates total count over 6 months in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-time-chart-search-that-accumulates-total-count-over-6/m-p/394409#M114563</link>
    <description>&lt;P&gt;I have a search that accumulates the total count for host over a 6 period of months. &lt;BR /&gt;
Now when I am trying to draw a time chart for it, I am unable to do so.&lt;BR /&gt;
It shows the result incorrectly- if it is showing one.&lt;BR /&gt;
Could anyone help in correcting it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|savedsearch "r1"
| bin _time span=6mon
|top 10 host by event,_time     | sort-count  | eventstats sum(count) as TotalNumber| eval PercentOfTotal = round(100 * count / TotalNumber,2). "%"
| stats  list(entity) as "Entity" list(count) as "Count", sum(count) as "Total"  by host ,_time
| sort-Total  
| addinfo 
| eval rank=1 | accum rank   | sort +num(rank)  | head (rank &amp;lt;=10)   | fields rank, host,Count,Total | eval Entity=mvindex(Entity,0,9) 
| eval Count=mvindex(Count,0,9) | eval Percent=mvindex(Percent,0,9)  | timechart span=1d useother=f count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Jul 2019 17:04:45 GMT</pubDate>
    <dc:creator>mayank101</dc:creator>
    <dc:date>2019-07-22T17:04:45Z</dc:date>
    <item>
      <title>Help with time chart search that accumulates total count over 6 months</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-time-chart-search-that-accumulates-total-count-over-6/m-p/394409#M114563</link>
      <description>&lt;P&gt;I have a search that accumulates the total count for host over a 6 period of months. &lt;BR /&gt;
Now when I am trying to draw a time chart for it, I am unable to do so.&lt;BR /&gt;
It shows the result incorrectly- if it is showing one.&lt;BR /&gt;
Could anyone help in correcting it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|savedsearch "r1"
| bin _time span=6mon
|top 10 host by event,_time     | sort-count  | eventstats sum(count) as TotalNumber| eval PercentOfTotal = round(100 * count / TotalNumber,2). "%"
| stats  list(entity) as "Entity" list(count) as "Count", sum(count) as "Total"  by host ,_time
| sort-Total  
| addinfo 
| eval rank=1 | accum rank   | sort +num(rank)  | head (rank &amp;lt;=10)   | fields rank, host,Count,Total | eval Entity=mvindex(Entity,0,9) 
| eval Count=mvindex(Count,0,9) | eval Percent=mvindex(Percent,0,9)  | timechart span=1d useother=f count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 17:04:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-time-chart-search-that-accumulates-total-count-over-6/m-p/394409#M114563</guid>
      <dc:creator>mayank101</dc:creator>
      <dc:date>2019-07-22T17:04:45Z</dc:date>
    </item>
  </channel>
</rss>

