<?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: Conditional Filter count results in chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103252#M26681</link>
    <description>&lt;P&gt;So you want to drop any host whos total sourceName count is less than 5?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2013 21:55:55 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2013-04-22T21:55:55Z</dc:date>
    <item>
      <title>Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103249#M26678</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=rhwindows sourcetype="WinEventLog:System" Type=Error OR Type=Warning NOT (*PrintSpooler OR *SpoolerWin32SPL) earliest=-24h@h latest=now | chart count over host by SourceName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hopefully simple one:&lt;BR /&gt;
Given the search above how do I only display counts that are greater then one for SourceName of a host.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 16:07:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103249#M26678</guid>
      <dc:creator>dchodur</dc:creator>
      <dc:date>2013-04-22T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103250#M26679</link>
      <description>&lt;P&gt;I would use a where clause and stats.   Keep in mind I am doing this off the cuff.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
...|stats count by host, SourceName| where count&amp;gt;5 | chart count over host by SourceName&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;This may get you closer. Also might work better with subsearch.&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
...|stats count by host, SourceName| streamstats sum(count) as total_count by host |selfjoin  host |where total_count&amp;gt;5 | chart count over host by SourceName&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;
This should do what you want or give you an idea.  Dont forget to  accept and/or vote up anwser that help.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 16:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103250#M26679</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-04-22T16:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103251#M26680</link>
      <description>&lt;P&gt;Apprechiate the response still not acting like I want. Maybe an example best.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    host    DnsApi  Kerberos    Microsoft-Windows-GroupPolicy   Microsoft-Windows-Resource-Exhaustion-Detector  Microsoft-Windows-Service Control Manager   Microsoft-Windows-Time-Service  PlugPlayManager     Print   Service Control Manager Eventlog Provider   TermServDevices
1   CLAIMS  0   0   0   0   0   0   0   2   0   0
2   DIVSRV  0   0   0   0   0   6   0   0   0   0
3   MQVMa   0   0   0   0   0   0   226 0   0   0
4   MQVMb   0   0   0   0   0   0   0   0   0   1
5   PASSEXTN1   0   0   28  0   0   0   0   0   0   0
6   RHEDOC  0   0   0   0   0   0   0   0   0   1
7   VIPPsrv 1   0   0   0   0   7   0   0   0   0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to drop off systems like MQVMb, RHEDOC since they only have a count of one in any of the columns. &lt;/P&gt;

&lt;P&gt;When I do the suggested way or anything where I seem to conditional count I loose systems lineMQVMa and the 226 or PASSEXTn1 28. &lt;/P&gt;

&lt;P&gt;Sure I am just not building out the search correctly from the git go.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103251#M26680</guid>
      <dc:creator>dchodur</dc:creator>
      <dc:date>2013-04-22T21:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103252#M26681</link>
      <description>&lt;P&gt;So you want to drop any host whos total sourceName count is less than 5?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103252#M26681</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-04-22T21:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103253#M26682</link>
      <description>&lt;P&gt;@dchodur,&lt;BR /&gt;
I've added an update.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 22:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103253#M26682</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-04-22T22:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103254#M26683</link>
      <description>&lt;P&gt;Sort of, I dont want any host where the count in any column of the columns is less then 2. A lot of these systems generate some one off events, I do not want to display those. I would assume if a host has a 28 in a column the others will still need to be zero or 1 because the host is listed. &lt;/P&gt;

&lt;P&gt;If there was a better way to chart/table these I would be up for that. Maybe a multi listing or something. &lt;/P&gt;

&lt;P&gt;Trying to make it easier to read and see issue spots.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103254#M26683</guid>
      <dc:creator>dchodur</dc:creator>
      <dc:date>2013-04-23T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103255#M26684</link>
      <description>&lt;P&gt;Sort of, I dont want any host where the count in any column of the columns is less then 2. A lot of these systems generate some one off events, I do not want to display those. I would assume if a host has a 28 in a column the others will still need to be zero or 1 because the host is listed. &lt;/P&gt;

&lt;P&gt;If there was a better way to chart/table these I would be up for that. Maybe a multi listing or something. &lt;/P&gt;

&lt;P&gt;Trying to make it easier to read and see issue spots.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103255#M26684</guid>
      <dc:creator>dchodur</dc:creator>
      <dc:date>2013-04-23T17:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103256#M26685</link>
      <description>&lt;P&gt;Sort of, I dont want any host where the count in any column of the columns is less then 2. A lot of these systems generate some one off events, I do not want to display those. I would assume if a host has a 28 in a column the others will still need to be zero or 1 because the host is listed. &lt;/P&gt;

&lt;P&gt;If there was a better way to chart/table these I would be up for that. Maybe a multi listing or something. &lt;/P&gt;

&lt;P&gt;Trying to make it easier to read and see issue spots.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103256#M26685</guid>
      <dc:creator>dchodur</dc:creator>
      <dc:date>2013-04-23T17:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103257#M26686</link>
      <description>&lt;P&gt;Sort of, I dont want any host where the count in any column of the columns is less then 2. A lot of these systems generate some one off events, I do not want to display those. I would assume if a host has a 28 in a column the others will still need to be zero or 1 because the host is listed. &lt;/P&gt;

&lt;P&gt;If there was a better way to chart/table these I would be up for that. Maybe a multi listing or something. &lt;/P&gt;

&lt;P&gt;Trying to make it easier to read and see issue spots. &lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103257#M26686</guid>
      <dc:creator>dchodur</dc:creator>
      <dc:date>2013-04-23T17:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103258#M26687</link>
      <description>&lt;P&gt;@dchodur, did you try my new search in my answer using streamstats?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103258#M26687</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-04-23T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103259#M26688</link>
      <description>&lt;P&gt;Finally got back to this: &lt;/P&gt;

&lt;P&gt;Found this post:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/56425/counting-distinct-field-values-and-dislaying-count-and-value-together"&gt;http://splunk-base.splunk.com/answers/56425/counting-distinct-field-values-and-dislaying-count-and-value-together&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Using this idea I did something like this. &lt;BR /&gt;
| stats count by SourceName host | search count &amp;gt; 2 | table SourceName, host, count | sort -count &lt;/P&gt;

&lt;P&gt;Not the way I really wanted it but it works. &lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2013 20:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103259#M26688</guid>
      <dc:creator>dchodur</dc:creator>
      <dc:date>2013-05-06T20:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Filter count results in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103260#M26689</link>
      <description>&lt;P&gt;I had a similar need, this worked for me:&lt;/P&gt;

&lt;P&gt;...| stats count as Total by host, SourceName | search Total &amp;gt; 5 | chart last(Total) over host by SourceName&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Conditional-Filter-count-results-in-chart/m-p/103260#M26689</guid>
      <dc:creator>vyhmeister</dc:creator>
      <dc:date>2014-02-19T17:40:17Z</dc:date>
    </item>
  </channel>
</rss>

