<?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 check if Splunk is getting data from the server? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-check-if-Splunk-is-getting-data-from-the-server/m-p/477853#M8475</link>
    <description>&lt;P&gt;I have created various alerts, however, sometimes alerts get generated even though there is no issue at all.&lt;/P&gt;

&lt;P&gt;Upon investigation, we have found out this happens when Splunk is not getting from servers.&lt;/P&gt;

&lt;P&gt;Is there a way we can put a condition in alert to verify if data is coming from the server?&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2019 04:01:32 GMT</pubDate>
    <dc:creator>bsaujla131984</dc:creator>
    <dc:date>2019-11-02T04:01:32Z</dc:date>
    <item>
      <title>How to check if Splunk is getting data from the server?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-check-if-Splunk-is-getting-data-from-the-server/m-p/477853#M8475</link>
      <description>&lt;P&gt;I have created various alerts, however, sometimes alerts get generated even though there is no issue at all.&lt;/P&gt;

&lt;P&gt;Upon investigation, we have found out this happens when Splunk is not getting from servers.&lt;/P&gt;

&lt;P&gt;Is there a way we can put a condition in alert to verify if data is coming from the server?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 04:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-check-if-Splunk-is-getting-data-from-the-server/m-p/477853#M8475</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2019-11-02T04:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Splunk is getting data from the server?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-check-if-Splunk-is-getting-data-from-the-server/m-p/477854#M8476</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts where index=your_index
| foreach *Time 
    [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;_c = strftime(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;,"%c")]
    | where recentTime =&amp;lt; relative_time(now(),"-10m@m") AND host="your_host"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If the &lt;CODE&gt;host&lt;/CODE&gt; specified in this query has not come 10 minutes ago, the log will be lost.&lt;/P&gt;

&lt;P&gt;Try changing the relative_time argument.&lt;BR /&gt;
I think you should alert when the result over 1.&lt;/P&gt;

&lt;P&gt;When sending the host name by alert mail&lt;BR /&gt;
Specify the fields to be displayed using the fields command.( &lt;CODE&gt;fields host&lt;/CODE&gt; )&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 09:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-check-if-Splunk-is-getting-data-from-the-server/m-p/477854#M8476</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-02T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Splunk is getting data from the server?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-check-if-Splunk-is-getting-data-from-the-server/m-p/477855#M8477</link>
      <description>&lt;P&gt;Hi  bsaujla131984,&lt;BR /&gt;
you should create a lookup with all the server to monitor (called e.g. perimeter.csv with a column called host) and schedule an alert (e.g. every five minutes) like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval count=0, host=lower(host) | fields host count ]
| stats sum(count) AS total BY host.
| where total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way if you have results, it means that one or more servers of your perimeter didn't send internal Splunk logs in the last period (e.g. 5 minutes).&lt;/P&gt;

&lt;P&gt;If you like, deleting last row, you can display the status of your servers: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;total=0 =&amp;gt; missing&lt;/LI&gt;
&lt;LI&gt;total&amp;gt;0 =&amp;gt; running&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can also display this dashboard in graphic mode.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 10:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-check-if-Splunk-is-getting-data-from-the-server/m-p/477855#M8477</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-02T10:33:47Z</dc:date>
    </item>
  </channel>
</rss>

