<?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: Unable to draw timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393411#M190813</link>
    <description>&lt;P&gt;Thank you so much ,it worked&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 23:57:17 GMT</pubDate>
    <dc:creator>mayank101</dc:creator>
    <dc:date>2019-07-19T23:57:17Z</dc:date>
    <item>
      <title>Unable to draw timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393408#M190810</link>
      <description>&lt;P&gt;I have a query that accumulates the total count for host over a 6 period of month. Now when I am trying to draw time chart for it ,I am unable to do so.It shows no result .&lt;BR /&gt;
| savedsearch "r1" &lt;BR /&gt;
| top 10 event by host     | sort-count  | eventstats sum(count) as TotalNumber| eval PercentOfTotal = round(100 * count / TotalNumber,2). "%"&lt;BR /&gt;
| stats  list(entity) as "Entity" list(count) as "Count", sum(count) as "Total"  by event &lt;BR /&gt;
| sort-Total&lt;BR /&gt;&lt;BR /&gt;
| addinfo &lt;BR /&gt;
| eval rank=1 | accum rank   | sort +num(rank)  | head (rank &amp;lt;=10)   | fields rank, host,event, Entity, Count,Total | eval Entity=mvindex(Entity,0,9) &lt;BR /&gt;
| eval Count=mvindex(Count,0,9) | eval Percent=mvindex(Percent,0,9)&lt;BR /&gt;
  |timechart span=1d useother=f count by host&lt;BR /&gt;
Can you please help in drawing timechart&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 21:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393408#M190810</guid>
      <dc:creator>mayank101</dc:creator>
      <dc:date>2019-07-19T21:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to draw timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393409#M190811</link>
      <description>&lt;P&gt;Timechart requires _time in order to function, but your "stats" commands don't pass _time through. Assuming your saved search includes _time, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| savedsearch "r1" 
| bin _time span=1d
| top 10 event by host, _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 event, _time
| sort-Total 
| addinfo 
| eval rank=1 
| accum rank 
| sort +num(rank) 
| head (rank &amp;lt;=10) 
| fields rank, host,event, Entity, 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;

&lt;P&gt;If your saved search has a different time field, then you may need to convert that to _time using strptime.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 23:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393409#M190811</guid>
      <dc:creator>jlemley</dc:creator>
      <dc:date>2019-07-19T23:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to draw timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393410#M190812</link>
      <description>&lt;P&gt;Thank you so much ,it worked&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 23:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393410#M190812</guid>
      <dc:creator>mayank101</dc:creator>
      <dc:date>2019-07-19T23:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to draw timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393411#M190813</link>
      <description>&lt;P&gt;Thank you so much ,it worked&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 23:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393411#M190813</guid>
      <dc:creator>mayank101</dc:creator>
      <dc:date>2019-07-19T23:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to draw timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393412#M190814</link>
      <description>&lt;P&gt;Hey jlemley...The above command is not working, its not showing top10,its just listing alphabetically.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-draw-timechart/m-p/393412#M190814</guid>
      <dc:creator>mayank101</dc:creator>
      <dc:date>2019-07-24T16:11:12Z</dc:date>
    </item>
  </channel>
</rss>

