<?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 chart by count, but only if the count is over a given number? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177173#M50908</link>
    <description>&lt;P&gt;Thats because your results do not have a field called "count" when you use a "by" clause in timechart and so the filter would give you no results.&lt;/P&gt;

&lt;P&gt;The query filter where would work as you expect if you remove the by clause, but since you are splitting them by src_ip you dont have an option to filter them further.&lt;/P&gt;

&lt;P&gt;The only option is to use stats command to do the split and filter and then convert into a chart or xyseries to plot a graph again.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|bucket span=1h _time | stats count by _time src_ip | where count &amp;gt;100 | xyseries _time,src_ip,count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Apr 2015 04:49:45 GMT</pubDate>
    <dc:creator>ramdaspr</dc:creator>
    <dc:date>2015-04-30T04:49:45Z</dc:date>
    <item>
      <title>How to chart by count, but only if the count is over a given number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177172#M50907</link>
      <description>&lt;P&gt;I'm trying to get a graph based on this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timechart span=1h count by src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I only want to display results if the count is over a given number. How can I do this?  I tried &lt;CODE&gt;|where count&amp;gt;100&lt;/CODE&gt;, but not working.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 03:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177172#M50907</guid>
      <dc:creator>jleppert</dc:creator>
      <dc:date>2015-04-30T03:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart by count, but only if the count is over a given number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177173#M50908</link>
      <description>&lt;P&gt;Thats because your results do not have a field called "count" when you use a "by" clause in timechart and so the filter would give you no results.&lt;/P&gt;

&lt;P&gt;The query filter where would work as you expect if you remove the by clause, but since you are splitting them by src_ip you dont have an option to filter them further.&lt;/P&gt;

&lt;P&gt;The only option is to use stats command to do the split and filter and then convert into a chart or xyseries to plot a graph again.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|bucket span=1h _time | stats count by _time src_ip | where count &amp;gt;100 | xyseries _time,src_ip,count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Apr 2015 04:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177173#M50908</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2015-04-30T04:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart by count, but only if the count is over a given number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177174#M50909</link>
      <description>&lt;P&gt;Thanks, it works as expected! &lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 05:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177174#M50909</guid>
      <dc:creator>jleppert</dc:creator>
      <dc:date>2015-04-30T05:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart by count, but only if the count is over a given number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177175#M50910</link>
      <description>&lt;P&gt;This works well for a bar chart but for a line chart, it does not connect a src-ip count from one hour to the next. Is there a way to do that?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 05:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177175#M50910</guid>
      <dc:creator>jleppert</dc:creator>
      <dc:date>2015-04-30T05:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart by count, but only if the count is over a given number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177176#M50911</link>
      <description>&lt;P&gt;Are you using this query on a dashboard or on the search panel?&lt;/P&gt;

&lt;P&gt;If on the search panel, use the formatting option to set Null Value to zero&lt;/P&gt;

&lt;P&gt;If on the dashboard, set &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.nullValueMode"&amp;gt;zero&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will force the chart to connect but dip to zero if a particular hour doesnt have any data.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 07:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177176#M50911</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2015-04-30T07:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart by count, but only if the count is over a given number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177177#M50912</link>
      <description>&lt;P&gt;... thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 09:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-by-count-but-only-if-the-count-is-over-a-given/m-p/177177#M50912</guid>
      <dc:creator>jleppert</dc:creator>
      <dc:date>2015-04-30T09:48:07Z</dc:date>
    </item>
  </channel>
</rss>

