<?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 would I display all hosts with AND without events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136839#M28182</link>
    <description>&lt;P&gt;I think I could definitely make something work with that.&lt;/P&gt;

&lt;P&gt;Will try outputting "host=* | stats count by host" to a lookup file then using your above answer to see if yields the desired results. Thanks!&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Edit&lt;/EM&gt;&lt;BR /&gt;
TESTED AND WORKS GREAT! THANK YOU!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2015 17:37:51 GMT</pubDate>
    <dc:creator>tylergps</dc:creator>
    <dc:date>2015-07-24T17:37:51Z</dc:date>
    <item>
      <title>How would I display all hosts with AND without events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136834#M28177</link>
      <description>&lt;P&gt;I'm trying to audit an environment based on Window's RDP event codes 21, 22, and 25. I'm able to display the number of RDP events for systems that have them, but for the ones that don't, I can't get them to display a value of 0 in the results.&lt;/P&gt;

&lt;P&gt;I tried using "fillnull" but couldn't find a solution.&lt;/P&gt;

&lt;P&gt;Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="wineventlog:microsoft-windows-terminalservices-localsessionmanager/operational" (EventCode=21 OR EventCode=22 OR EventCode=25) | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jul 2015 22:44:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136834#M28177</guid>
      <dc:creator>tylergps</dc:creator>
      <dc:date>2015-07-23T22:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: How would I display all hosts with AND without events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136835#M28178</link>
      <description>&lt;P&gt;Assuming you have a list of expected hosts in a lookup file with a single column &lt;CODE&gt;host&lt;/CODE&gt;, you can do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count by host | append [inputlookup expected_hosts | eval count = 0] | stats max(count) as max by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jul 2015 00:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136835#M28178</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-24T00:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: How would I display all hosts with AND without events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136836#M28179</link>
      <description>&lt;P&gt;I wish you would be able to do a sub search or something.&lt;/P&gt;

&lt;P&gt;Wanted to try to avoid adding complexity with the lookup file. It may be my only solution though...&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 01:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136836#M28179</guid>
      <dc:creator>tylergps</dc:creator>
      <dc:date>2015-07-24T01:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How would I display all hosts with AND without events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136837#M28180</link>
      <description>&lt;P&gt;If you want to have all the hosts listed, even those without any events, then this is the way to go to make sure you get all hosts. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 01:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136837#M28180</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-24T01:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How would I display all hosts with AND without events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136838#M28181</link>
      <description>&lt;P&gt;You could of course use Splunk to build this lookup, adding hosts but never removing them: &lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 13:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136838#M28181</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-24T13:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How would I display all hosts with AND without events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136839#M28182</link>
      <description>&lt;P&gt;I think I could definitely make something work with that.&lt;/P&gt;

&lt;P&gt;Will try outputting "host=* | stats count by host" to a lookup file then using your above answer to see if yields the desired results. Thanks!&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Edit&lt;/EM&gt;&lt;BR /&gt;
TESTED AND WORKS GREAT! THANK YOU!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 17:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-display-all-hosts-with-AND-without-events/m-p/136839#M28182</guid>
      <dc:creator>tylergps</dc:creator>
      <dc:date>2015-07-24T17:37:51Z</dc:date>
    </item>
  </channel>
</rss>

