<?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 How to edit my search to find the name of each server that has not reported in the last 4 hours? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135237#M36984</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am a new one to splunk. Now i am facing some problem to get the data as I want. &lt;BR /&gt;
I have more than 250 servers forwarding data to splunk, and the events are updated every hour as a group. For example, each server will sent the total number of interaction for the last hour. now I want to find every server name which has not sent data for the last 4 hours. &lt;BR /&gt;
When I search the event, if there is no data sending, then the server name will not display after search, so I can't get them. My question is how can I get all server names and then find out those who are no longer sending. Please kindly help me on this.&lt;BR /&gt;
My base search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; interaction_count="*" LIVE| eval date = strftime(_time, "%Y-%m-%d")| stats sum(interaction_count) as sum_interaction_count by mount_name, date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance~~~&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2015 01:38:18 GMT</pubDate>
    <dc:creator>tenyang</dc:creator>
    <dc:date>2015-06-04T01:38:18Z</dc:date>
    <item>
      <title>How to edit my search to find the name of each server that has not reported in the last 4 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135237#M36984</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am a new one to splunk. Now i am facing some problem to get the data as I want. &lt;BR /&gt;
I have more than 250 servers forwarding data to splunk, and the events are updated every hour as a group. For example, each server will sent the total number of interaction for the last hour. now I want to find every server name which has not sent data for the last 4 hours. &lt;BR /&gt;
When I search the event, if there is no data sending, then the server name will not display after search, so I can't get them. My question is how can I get all server names and then find out those who are no longer sending. Please kindly help me on this.&lt;BR /&gt;
My base search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; interaction_count="*" LIVE| eval date = strftime(_time, "%Y-%m-%d")| stats sum(interaction_count) as sum_interaction_count by mount_name, date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance~~~&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 01:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135237#M36984</guid>
      <dc:creator>tenyang</dc:creator>
      <dc:date>2015-06-04T01:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find the name of each server that has not reported in the last 4 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135238#M36985</link>
      <description>&lt;P&gt;One thing need mention is that, if there is no interaction in 1 hour, it still send a event, but the sum(interaction_count) is 0. Now I want to find out no data reporting screen, &lt;STRONG&gt;which shows blank not 0&lt;/STRONG&gt; if we show one day event by hour.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 01:43:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135238#M36985</guid>
      <dc:creator>tenyang</dc:creator>
      <dc:date>2015-06-04T01:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find the name of each server that has not reported in the last 4 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135239#M36986</link>
      <description>&lt;P&gt;Run something like this every hour for the last 24 hours as an Alert:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | stats latest(_time) AS lastReportTime BY mount_name | eval silenceSeconds = now() - lastReportTime | where silenceSeconds &amp;gt; 14400
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135239#M36986</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-04T13:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find the name of each server that has not reported in the last 4 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135240#M36987</link>
      <description>&lt;P&gt;Here you go!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;interaction_count="*" LIVE|bucket _time span=4h| eval date = strftime(_time, "%Y-%m-%d")| stats sum(interaction_count) as sum_interaction_count by mount_name, date|where sum_interaction_count=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2015 14:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135240#M36987</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-04T14:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find the name of each server that has not reported in the last 4 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135241#M36988</link>
      <description>&lt;P&gt;Thanks so much Woodcock, it works!!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2015 06:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135241#M36988</guid>
      <dc:creator>tenyang</dc:creator>
      <dc:date>2015-06-05T06:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find the name of each server that has not reported in the last 4 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135242#M36989</link>
      <description>&lt;P&gt;Thanks for your help Stephanefotso.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2015 06:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-the-name-of-each-server-that-has/m-p/135242#M36989</guid>
      <dc:creator>tenyang</dc:creator>
      <dc:date>2015-06-05T06:05:09Z</dc:date>
    </item>
  </channel>
</rss>

