<?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: Create Search for a Host who dont send Data for x minutes in the last 10 Days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457413#M170469</link>
    <description>&lt;P&gt;@mklhs,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | metadata type=hosts where index=* OR index=_*|eval delay=round((now()-lastTime)/60)|where delay &amp;gt;10| fields host,delay
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Jul 2019 13:22:03 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-07-08T13:22:03Z</dc:date>
    <item>
      <title>Create Search for a Host who dont send Data for x minutes in the last 10 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457412#M170468</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;i wanted to write a search which will return all hosts which have not sent any events for 10 minutes in the last 10 days.&lt;BR /&gt;
Normally the servers send every minute. &lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 11:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457412#M170468</guid>
      <dc:creator>mklhs</dc:creator>
      <dc:date>2019-07-08T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Search for a Host who dont send Data for x minutes in the last 10 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457413#M170469</link>
      <description>&lt;P&gt;@mklhs,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | metadata type=hosts where index=* OR index=_*|eval delay=round((now()-lastTime)/60)|where delay &amp;gt;10| fields host,delay
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2019 13:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457413#M170469</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-08T13:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Search for a Host who dont send Data for x minutes in the last 10 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457414#M170470</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;
but if I now have a time interval we say from last week Wednesday to yesterday how would I change the query? somehow that doesn't quite want to be me&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457414#M170470</guid>
      <dc:creator>mklhs</dc:creator>
      <dc:date>2019-07-08T14:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create Search for a Host who dont send Data for x minutes in the last 10 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457415#M170471</link>
      <description>&lt;P&gt;@mklhs,&lt;/P&gt;

&lt;P&gt;Try this with time range&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tstats count,max(_time) as _time where index=* by host | eval delay=(now()-_time)/60
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 02:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457415#M170471</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-09T02:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create Search for a Host who dont send Data for x minutes in the last 10 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457416#M170472</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;

&lt;P&gt;i got it with that query:&lt;/P&gt;

&lt;P&gt;index= sourcetype= | eval age = (now() - _time ) | stats first(age) as age, first(_time) as LastTime by xxx | convert ctime(lastTime) as "Last Active On" | eval Status=case(age &amp;lt; 600, "running",age &amp;gt; 600,"Down"&lt;/P&gt;

&lt;P&gt;with the last eval i have determined from when a server counts as not available for me&lt;/P&gt;

&lt;P&gt;I hope it Helps someone&lt;/P&gt;

&lt;P&gt;Thanks @renjith.nair&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Search-for-a-Host-who-dont-send-Data-for-x-minutes-in-the/m-p/457416#M170472</guid>
      <dc:creator>mklhs</dc:creator>
      <dc:date>2020-09-30T01:12:09Z</dc:date>
    </item>
  </channel>
</rss>

