<?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 prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543583#M1392</link>
    <description>&lt;P&gt;Gracia. Would this tell me the list of hosts ONLY that have not reported in?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 19:25:07 GMT</pubDate>
    <dc:creator>SamHTexas</dc:creator>
    <dc:date>2021-03-12T19:25:07Z</dc:date>
    <item>
      <title>How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543469#M1388</link>
      <description>&lt;P&gt;I have used the following but not producing any results. Please check it for errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... | eval etime=strptime(time, "%d/%m/%Y"), sevenDaysAgo=relative_time(now(), "-7d")| where etime &amp;lt; sevenDaysAgo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 02:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543469#M1388</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-12T02:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543494#M1389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have a list of the hosts in your perimeter in a lookup (e.g. perimeter.csv with a column called host) to check you could use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=_internal
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(cout) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;if instead you want to check the hosts of (e.g.) last month and find the ones that didn't send logs in the last seven days, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=_internal earliest=-30d@d latest=now
| eval check=if(now()-_time&amp;lt;604800,"last Week","Previous weeks")
| stats dc(check) AS dc_check values(check) AS check BY host
| where dc_check=1 AND check="Previous weeks"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 07:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543494#M1389</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-12T07:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543574#M1390</link>
      <description>&lt;P&gt;Please show me how to look up hosts that have not reported since yesterday for example.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543574#M1390</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-12T17:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543576#M1391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could use my search adding the outputlookup command at the end (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/SearchReference/Outputlookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.2/SearchReference/Outputlookup&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;But remember that you have to create the Lookup and the Lookup Definition before to run the outputlookup command.&lt;/P&gt;&lt;P&gt;But my hint is diferent: run a search to list all the servers in your infrastructure and put them in a lookup, so you can use this list to check your infrastructure.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543576#M1391</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-12T17:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543583#M1392</link>
      <description>&lt;P&gt;Gracia. Would this tell me the list of hosts ONLY that have not reported in?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 19:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543583#M1392</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-12T19:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543614#M1393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said if you use the "where" condition in the searches of my previous answer you have only the ones that reported before but not in the last week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 06:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543614#M1393</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-13T06:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543691#M1394</link>
      <description>&lt;P&gt;Thank u for being patient with my learning. Do both of your conditions require a lookup file or only the fist one does? Thanks again&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 20:32:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543691#M1394</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-13T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543714#M1395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;don't worry, no problem!&lt;/P&gt;&lt;P&gt;Anyway, only the first requires a perimeter lookup.&lt;/P&gt;&lt;P&gt;The first condition has the problem that requires the perimeter lookup to manually maintain, but gives you more control on your perimeter.&lt;/P&gt;&lt;P&gt;The second is easiest to maintain (doesn't requires any intervene), but it has the problem that if you have hosts that didn't send logs in the last month you loose them, at the same time if you dismiss an host, you continue to have alerts for a month.&lt;/P&gt;&lt;P&gt;For these reasons I prefer and usually use the first solution, you eventually could use the first maintaing it using the second.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: if this answer solves your need, please accept it for the other people of Community and Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 07:09:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543714#M1395</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-14T07:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543870#M1396</link>
      <description>&lt;P&gt;Thank u very much again. I don't have a lookup table for this purpose. But non of these 2 searches produce any results for me at all. Any idea please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543870#M1396</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-15T14:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543871#M1397</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the first part of the first search gives you a list of all hosts that reported that you can insert in a lookup using output lookup, in few words you have to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a lookup (called e.g. perimeter with a column called host);&lt;/LI&gt;&lt;LI&gt;create a Lookup definition (called e.g. perimeter);&lt;/LI&gt;&lt;LI&gt;| run the following search:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=_internal
| eval host=lower(host)
| stats count BY host
| outputlookup perimeter&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543871#M1397</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-15T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543872#M1398</link>
      <description>&lt;P&gt;One more question please. So I have to have a look up table either way? My problem is that we have a 100 thousand servers !! Is there a SPL query that does not require an outlook table? Thx again&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543872#M1398</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-15T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543876#M1399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case you can use my second answer that doesn't requires a lookup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=_internal earliest=-30d@d latest=now
| eval check=if(now()-_time&amp;lt;604800,"last Week","Previous weeks")
| stats dc(check) AS dc_check values(check) AS check BY host
| where dc_check=1 AND check="Previous weeks"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543876#M1399</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-15T15:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543881#M1400</link>
      <description>&lt;P&gt;Let me test it out. Bro, I owe you a nice dinner in Rome when I visit there next time. I live in TX but my sister lives in Ticcino in Switzerland. Have a nice day.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543881#M1400</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-15T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543883#M1401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;with great pleasure!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: please accept the answer for the other people of Community and Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543883#M1401</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-15T15:29:08Z</dc:date>
    </item>
    <item>
      <title>How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543896#M1402</link>
      <description>&lt;P&gt;I check the following in our system&lt;/P&gt;&lt;PRE&gt;| metasearch index=_internal earliest=-30d@d latest=now
| eval check=if(now()-_time&amp;lt;604800,"last Week","Previous weeks")
| stats dc(check) AS dc_check values(check) AS check BY host
| where dc_check=1 AND check="Previous weeks"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It checks &amp;amp; checks for a long time for events. What I need to do is to get ONLY the names of hosts that HAVE NOT reported in. Please advise &amp;amp; thank you once again&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 16:37:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543896#M1402</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-03-15T16:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543898#M1403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228649"&gt;@SamHTexas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;with this search you have all the hosts in a lookup:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=_internal
| eval host=lower(host)
| stats count BY host
| outputlookup perimeter&lt;/LI-CODE&gt;&lt;P&gt;if you want the ones that doesn't reported in the last week:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=_internal earliest=-30d@d latest=now
| eval check=if(now()-_time&amp;lt;604800,"last Week","Previous weeks")
| stats dc(check) AS dc_check values(check) AS check BY host
| where dc_check=1 AND check="Previous weeks"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 16:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/543898#M1403</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-15T16:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to prepare a list of hosts that have not reported in for few days - Please check my SPL listed for errors</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/579928#M1404</link>
      <description>&lt;P&gt;Happy 2022 Bro. Just noticed that I did not give you credit for your help then. So I just did. Thank u for all your help in 2021. Stay safe.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 23:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-prepare-a-list-of-hosts-that-have-not-reported-in-for-few/m-p/579928#M1404</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2022-01-04T23:10:45Z</dc:date>
    </item>
  </channel>
</rss>

