<?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 get the non reporting device list?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384749#M172154</link>
    <description>&lt;P&gt;This is the &lt;CODE&gt;Sentinel Search&lt;/CODE&gt; problem discussed (with solution) here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf"&gt;https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2019 04:44:45 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-04-01T04:44:45Z</dc:date>
    <item>
      <title>How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384745#M172150</link>
      <description>&lt;P&gt;How to get the non reporting device list?? &lt;/P&gt;

&lt;P&gt;Any way to compare the lookup and the stored data so i can get the non reporting device list??&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384745#M172150</guid>
      <dc:creator>raja8220</dc:creator>
      <dc:date>2019-03-29T12:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384746#M172151</link>
      <description>&lt;P&gt;@raja8220 &lt;/P&gt;

&lt;P&gt;Please share your sample search.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384746#M172151</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-03-29T12:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384747#M172152</link>
      <description>&lt;P&gt;For example I have a lookup file which contain my inventory with device name it contain 10 device and am getting logs only from 8 devices by which SPL command I can compare and get the list of device where am not getting any logs ???? &lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:36:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384747#M172152</guid>
      <dc:creator>raja8220</dc:creator>
      <dc:date>2019-03-29T12:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384748#M172153</link>
      <description>&lt;P&gt;Hi @raja8220,&lt;/P&gt;

&lt;P&gt;Without seeing your search, or any details about what you're searching for, I can only give a high-level view of how to go about this.&lt;/P&gt;

&lt;P&gt;You can structure your search like this:&lt;BR /&gt;
1. Main search: index=blah | stats count by host (or use | metadata for speed)&lt;BR /&gt;
2. Append your lookup of known devices, and create a field called "totalCount" that equals zero&lt;BR /&gt;
3. Use stats to get the first value for each host.&lt;BR /&gt;
4. Filter out all hosts with a totalCount greater than zero&lt;/P&gt;

&lt;P&gt;This method will get all hosts that are forwarding data, and then add a list of all known hosts. There will be duplicates - so we need to tidy it up a bit. By using stats we weed out all the duplicate events, and are left with a unique list of all the host names, and a count of how many messages were received. &lt;/P&gt;

&lt;P&gt;Now you can filter out all hosts that have a count &amp;gt;0.  The remaining hosts haven't communicated in your selected time period.&lt;/P&gt;

&lt;P&gt;Here's an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=my_index 
| fields host, totalCount
| append [| inputlookup assets.csv | eval totalCount=0 | fields totalCount, host]
| stats first(totalCount) as totalCount by host
| where totalCount=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Mar 2019 22:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384748#M172153</guid>
      <dc:creator>spavin</dc:creator>
      <dc:date>2019-03-29T22:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384749#M172154</link>
      <description>&lt;P&gt;This is the &lt;CODE&gt;Sentinel Search&lt;/CODE&gt; problem discussed (with solution) here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf"&gt;https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 04:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384749#M172154</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-01T04:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384750#M172155</link>
      <description>&lt;P&gt;My lookup name is sw.csv in this one field is host contain IP address of my inventory and that field am matching with my splunk default host field.&lt;/P&gt;

&lt;P&gt;In my splunk search &lt;BR /&gt;
index=cisco | lookup sw.csv host | table host  ##getting the active device list&lt;/P&gt;

&lt;P&gt;|inputlookup sw.csv | table host   ##getting the inventory list&lt;/P&gt;

&lt;P&gt;How to merge these two and get only the not active device list ????&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 11:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384750#M172155</guid>
      <dc:creator>raja8220</dc:creator>
      <dc:date>2019-04-01T11:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384751#M172156</link>
      <description>&lt;P&gt;Answered previously here&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/737119/if-the-device-removed-from-network-then-how-i-will.html?childToView=737379#answer-737379"&gt;You canget this done using tstats command&lt;/A&gt;&lt;BR /&gt;
You can get this done using 'tstats' command. You may run this search Every Hour, Every Day depending upon your requirement.&lt;BR /&gt;
The below query is for any host that has not sent data for over an hour, you can change the value of 'diff&amp;gt;=3600' to suit your need and run a scheduled search. The 'tstats' command actually does require very less time to complete, it is blazing fast so no need to worry about performance impact.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats latest(_time) as lat_time by host | eval NOW=now() | eval diff=NOW-lat_time | where diff&amp;gt;=3600 | table host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Apr 2019 21:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384751#M172156</guid>
      <dc:creator>ashutoshab</dc:creator>
      <dc:date>2019-04-01T21:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384752#M172157</link>
      <description>&lt;P&gt;Start with this, and tweak it to suit:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=cisco 
| lookup sw.csv host 
| stats count by host
|append[|inputlookup sw.csv | eval count=0 | fields host, count]
| stats first(count) as count by host
| where count=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Apr 2019 22:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384752#M172157</guid>
      <dc:creator>spavin</dc:creator>
      <dc:date>2019-04-01T22:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the non reporting device list??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384753#M172158</link>
      <description>&lt;P&gt;Am not getting the list of the device which is not sending the logs ??  &lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 11:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-non-reporting-device-list/m-p/384753#M172158</guid>
      <dc:creator>raja8220</dc:creator>
      <dc:date>2019-04-03T11:43:03Z</dc:date>
    </item>
  </channel>
</rss>

