<?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: How to plot a timechart from a stats search output with span=1m? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133801#M36566</link>
    <description>&lt;P&gt;You must make sure to have a &lt;CODE&gt;_time&lt;/CODE&gt; field available after the stats or the timechart will fail, do as I said or do as @somesoni2 said &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2014 19:58:53 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-11-25T19:58:53Z</dc:date>
    <item>
      <title>How to plot a timechart from a stats search output with span=1m?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133797#M36562</link>
      <description>&lt;P&gt;After doing transaction, removing unique row and finally applying &lt;/P&gt;

&lt;P&gt;| stats list(score) as score, list(Id) as Id by Type&lt;/P&gt;

&lt;P&gt;gave me following result, can someone tell me a way to plot this as  timechart span=1m avg(Score) by Type this command doesn't plot any data &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type          Score
A               123
                786
                 45

B                34
                 95
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Nov 2014 18:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133797#M36562</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T18:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a timechart from a stats search output with span=1m?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133798#M36563</link>
      <description>&lt;P&gt;Hi MayankSplunk,&lt;/P&gt;

&lt;P&gt;after the stats you don't have &lt;CODE&gt;_time&lt;/CODE&gt; available for timechart, so do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats list(score) as score, list(Id) as Id by Type, _time | timechart ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 19:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133798#M36563</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-11-25T19:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a timechart from a stats search output with span=1m?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133799#M36564</link>
      <description>&lt;P&gt;Hi MuS,&lt;/P&gt;

&lt;P&gt;Sorry that din't work. &lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 19:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133799#M36564</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T19:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a timechart from a stats search output with span=1m?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133800#M36565</link>
      <description>&lt;P&gt;Try this &lt;BR /&gt;
If you want avg of all values of score for a Type, including duplicates (two entries with same score and Type)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search ..before your stats | timechart span=1m avg(score) by Type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;BR /&gt;
If you want avg of only unique values of score for a Type, excludingduplicates&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search ..before your stats | bucket span=1m _time | stats count by score, type, _time | timechart span=1m avg(score) by Type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Nov 2014 19:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133800#M36565</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-25T19:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a timechart from a stats search output with span=1m?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133801#M36566</link>
      <description>&lt;P&gt;You must make sure to have a &lt;CODE&gt;_time&lt;/CODE&gt; field available after the stats or the timechart will fail, do as I said or do as @somesoni2 said &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 19:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-timechart-from-a-stats-search-output-with-span-1m/m-p/133801#M36566</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-11-25T19:58:53Z</dc:date>
    </item>
  </channel>
</rss>

