<?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 write a search to alert if indexers are not receiving data from forwarders? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241199#M71713</link>
    <description>&lt;P&gt;If your on v6.4 you could use the DMC to monitor your forwarders, if on an earlier version then you can do something like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd destPort!="-"| stats sparkline count by hostname, sourceHost, host, destPort, version | rename destPort as "Destination Port" | rename host as "Indexer" | rename sourceHost as "Forwarder IP" | rename version as "Splunk Forwarder Version" | rename hostname as "Forwarder Host Name" | rename sparkline as "Traffic Frequency" | sort - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Oct 2016 18:23:09 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2016-10-14T18:23:09Z</dc:date>
    <item>
      <title>How to write a search to alert if indexers are not receiving data from forwarders?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241195#M71709</link>
      <description>&lt;P&gt;Hi Team, &lt;/P&gt;

&lt;P&gt;How do I write a search to alert me when one of the critical indexers is not receiving the data from the source?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 15:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241195#M71709</guid>
      <dc:creator>srikanth1213</dc:creator>
      <dc:date>2016-10-10T15:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to alert if indexers are not receiving data from forwarders?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241196#M71710</link>
      <description>&lt;P&gt;You can use following query to check if you're receiving data from a particular source OR not.&lt;/P&gt;

&lt;P&gt;Assuming your threshold time period for not reporting is 1 hour/3600 secs. Run below search for a period longer then 1 hr and setup alert when there are records retured&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Using metadata command&lt;/STRONG&gt;&lt;BR /&gt;
If you want to know based on host&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=yourindexNameHere | where host=yourHostNameHere| eval age=(recentTime-now()) | where age&amp;gt;3600 | table host recentTime age | convert ctime(recentTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For sourcetype, use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index=yourindexNameHere | where sourcetype=yourSourcetypeNameHere| eval age=(recentTime-now()) | where age&amp;gt;3600 | table sourcetype recentTime age | convert ctime(recentTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For source, use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sources index=yourindexNameHere | where source=yourSourceNameHere| eval age=(recentTime-now()) | where age&amp;gt;3600 | table source recentTime age | convert ctime(recentTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Using tstats&lt;/STRONG&gt;&lt;BR /&gt;
Just replace sourcetype with any other metadata field that you want to use.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats max(_time) as recentTime WHERE index=yourindexNameHere  by sourcetype | where sourcetype=yourSourcetypeNameHere| eval age=(recentTime-now()) | where age&amp;gt;3600 | table sourcetype recentTime age | convert ctime(recentTime)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Oct 2016 21:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241196#M71710</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-10T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to alert if indexers are not receiving data from forwarders?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241197#M71711</link>
      <description>&lt;P&gt;@somesoni2 :thanks much for the answer. I should have put the question in the right way ..my bad !&lt;BR /&gt;
Basically I wanted to check if critical  "indexes" but not "indexer" are receiving the data or not.. &lt;BR /&gt;
Does the above answer's  apply for indexes as well? &lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 17:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241197#M71711</guid>
      <dc:creator>srikanth1213</dc:creator>
      <dc:date>2016-10-14T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to alert if indexers are not receiving data from forwarders?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241198#M71712</link>
      <description>&lt;P&gt;It actually applies to indexes only. If you've setup your indexers in standard way, all indexers are important. What you want is very common Splunk monitoring use-case. Hope the answer helps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241198#M71712</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-14T18:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to alert if indexers are not receiving data from forwarders?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241199#M71713</link>
      <description>&lt;P&gt;If your on v6.4 you could use the DMC to monitor your forwarders, if on an earlier version then you can do something like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd destPort!="-"| stats sparkline count by hostname, sourceHost, host, destPort, version | rename destPort as "Destination Port" | rename host as "Indexer" | rename sourceHost as "Forwarder IP" | rename version as "Splunk Forwarder Version" | rename hostname as "Forwarder Host Name" | rename sparkline as "Traffic Frequency" | sort - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241199#M71713</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-14T18:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to alert if indexers are not receiving data from forwarders?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241200#M71714</link>
      <description>&lt;P&gt;Hi somesoni2, in your statement  "Assuming your threshold time period for not reporting is 1 hour/3600 secs. Run below search for a period longer then 1 hr and setup alert when there are records retured"     did you mean " setup alert when there are records "NOT "returned ?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-alert-if-indexers-are-not-receiving/m-p/241200#M71714</guid>
      <dc:creator>srikanth1213</dc:creator>
      <dc:date>2016-10-17T17:06:07Z</dc:date>
    </item>
  </channel>
</rss>

