<?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 can I use results of a stats table to output to another pipe or timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332104#M98791</link>
    <description>&lt;P&gt;What's your final expected output (that you want to generate for these top 10 error codes)?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 21:32:27 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-12-08T21:32:27Z</dc:date>
    <item>
      <title>How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332103#M98790</link>
      <description>&lt;P&gt;index=source earliest=-2h  sourcetype=e | bucket _time span=1h |stats count by code _time| delta count as difference | eval percdif=round(abs(difference/count)*100,0)|table code, count, difference, percdif|sort -percdif -count|where count&amp;gt;1100|fields code|head 10&lt;/P&gt;

&lt;P&gt;I am using this query. output basically will return error codes sorted with high percentage difference (errors are increasing). I am using fields command to only output top 10 errors in table&lt;/P&gt;

&lt;P&gt;since this query will show as stats table, how can I use this output to further pipe or do a timechart?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332103#M98790</guid>
      <dc:creator>spark2310</dc:creator>
      <dc:date>2017-12-08T20:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332104#M98791</link>
      <description>&lt;P&gt;What's your final expected output (that you want to generate for these top 10 error codes)?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 21:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332104#M98791</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-08T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332105#M98792</link>
      <description>&lt;P&gt;Final output should be a timechart of the top 10 error codes (of query I posted above)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332105#M98792</guid>
      <dc:creator>spark2310</dc:creator>
      <dc:date>2017-12-08T22:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332106#M98793</link>
      <description>&lt;P&gt;If your timechart query's timerange is different from last 2 hr, then try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=source [search index=source earliest=-2h sourcetype=e | bucket _time span=1h |stats count by code _time| delta count as difference | eval percdif=round(abs(difference/count)*100,0)|table code, count, difference, percdif|sort -percdif -count|where count&amp;gt;1100|fields code|head 10] 
| timechart count by code
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332106#M98793</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-08T22:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332107#M98794</link>
      <description>&lt;P&gt;It did not work, returns 0 results&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332107#M98794</guid>
      <dc:creator>spark2310</dc:creator>
      <dc:date>2017-12-08T22:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332108#M98795</link>
      <description>&lt;P&gt;How about this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=source sourcetype=e  [search index=source earliest=-2h sourcetype=e | bucket _time span=1h |stats count by code _time| delta count as difference | eval percdif=round(abs(difference/count)*100,0)|table code, count, difference, percdif|sort -percdif -count|where count&amp;gt;1100|fields code|head 10] 
 | timechart count by code
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332108#M98795</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-08T22:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332109#M98796</link>
      <description>&lt;P&gt;Thanks working now&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 23:00:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332109#M98796</guid>
      <dc:creator>spark2310</dc:creator>
      <dc:date>2017-12-08T23:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332110#M98797</link>
      <description>&lt;P&gt;does this work if I pass more than one field (code and percdif) to timechart as well? &lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 23:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332110#M98797</guid>
      <dc:creator>spark2310</dc:creator>
      <dc:date>2017-12-08T23:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use results of a stats table to output to another pipe or timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332111#M98798</link>
      <description>&lt;P&gt;It'll. As long as that field is present in main search.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 00:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-results-of-a-stats-table-to-output-to-another-pipe/m-p/332111#M98798</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-09T00:20:45Z</dc:date>
    </item>
  </channel>
</rss>

