<?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 Filter Timechart Fields by Count in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Filter-Timechart-Fields-by-Count/m-p/485838#M1871</link>
    <description>&lt;P&gt;So I'm trying to write a query that allows for displaying a timechart after I've filtered fields by count using stats.&lt;BR /&gt;
I've been able to filter fields by their counts with this...&lt;BR /&gt;
&lt;CODE&gt;host=server1 | stats count by errorName | where count &amp;gt; 250&lt;/CODE&gt;&lt;BR /&gt;
...which does exactly what I want, returning only the errors that have occurred more than 250 times in the given time period.&lt;/P&gt;

&lt;P&gt;What I cannot figure out, however, is how to take that and make a visualization out of it. If I change stats to timechart, it does not work. And neither does adding a timechart count after the where clause.&lt;BR /&gt;
Any ideas would be very helpful!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Logan&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2019 17:58:38 GMT</pubDate>
    <dc:creator>logankinman99</dc:creator>
    <dc:date>2019-11-15T17:58:38Z</dc:date>
    <item>
      <title>Filter Timechart Fields by Count</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Filter-Timechart-Fields-by-Count/m-p/485838#M1871</link>
      <description>&lt;P&gt;So I'm trying to write a query that allows for displaying a timechart after I've filtered fields by count using stats.&lt;BR /&gt;
I've been able to filter fields by their counts with this...&lt;BR /&gt;
&lt;CODE&gt;host=server1 | stats count by errorName | where count &amp;gt; 250&lt;/CODE&gt;&lt;BR /&gt;
...which does exactly what I want, returning only the errors that have occurred more than 250 times in the given time period.&lt;/P&gt;

&lt;P&gt;What I cannot figure out, however, is how to take that and make a visualization out of it. If I change stats to timechart, it does not work. And neither does adding a timechart count after the where clause.&lt;BR /&gt;
Any ideas would be very helpful!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Logan&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 17:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Filter-Timechart-Fields-by-Count/m-p/485838#M1871</guid>
      <dc:creator>logankinman99</dc:creator>
      <dc:date>2019-11-15T17:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Timechart Fields by Count</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Filter-Timechart-Fields-by-Count/m-p/485839#M1872</link>
      <description>&lt;P&gt;&lt;CODE&gt;| stats ...&lt;/CODE&gt; strips all fields that arent specifically defined either in the functions / attributes section or after the &lt;CODE&gt;by&lt;/CODE&gt; clause ...&lt;BR /&gt;
try something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host = server1 | bin _time span=5m | stats count as error_count by errorName _time | where error_count &amp;gt; 250 | timechart span=30m avg(error_count) as  avg_error_count by errorName&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 18:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Filter-Timechart-Fields-by-Count/m-p/485839#M1872</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-11-15T18:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Timechart Fields by Count</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Filter-Timechart-Fields-by-Count/m-p/485840#M1873</link>
      <description>&lt;P&gt;Hey, this worked pretty well! Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 20:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Filter-Timechart-Fields-by-Count/m-p/485840#M1873</guid>
      <dc:creator>logankinman99</dc:creator>
      <dc:date>2019-11-15T20:12:37Z</dc:date>
    </item>
  </channel>
</rss>

