<?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: Alerts based on metadata command output in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alerts-based-on-metadata-command-output/m-p/52720#M700</link>
    <description>&lt;P&gt;As you've noticed the results presented are not based on the events. I.e. the search process will not search through a gazillion events to find those that match e.g. a string like 'error'. Instead the metadata command will look at the metadata for the indexes and buckets. This is a MUCH faster operation, and there will be no matching events, since the events were not even searched. That is also why you only have a limited set of search options, there simply is not all that much to search upon.&lt;/P&gt;

&lt;P&gt;However, In your case it would probably be a good idea to look at the Splunk Deployment Monitor app, which can help you alert on missing forwarders and sourcetypes etc etc. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/67836/splunk-deployment-monitor"&gt;http://splunk-base.splunk.com/apps/67836/splunk-deployment-monitor&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jun 2013 21:41:00 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-06-01T21:41:00Z</dc:date>
    <item>
      <title>Alerts based on metadata command output</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-based-on-metadata-command-output/m-p/52719#M699</link>
      <description>&lt;P&gt;I am using the following search to see what hosts have stopped sending data to splunk server.&lt;/P&gt;

&lt;P&gt;| metadata type=hosts index=* | where relative_time(now(), "-1d") &amp;gt; lastTime | convert ctime(lastTime) as Latest_Time | sort -lastTime | table host,Latest_Time&lt;/P&gt;

&lt;P&gt;It returns me some hosts that have stopped sending data to my splunk server. For example the response from this search is:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;0 matching events&lt;/STRONG&gt;&lt;BR /&gt;
(This is always 0 when using metadata command)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;13 results over all time&lt;/STRONG&gt; &lt;BR /&gt;
(This is a list of 13 hosts along with time stats about events)&lt;/P&gt;

&lt;P&gt;What is the different between events and results when using metadata command? &lt;STRONG&gt;I want to create an alert based on when more than 0 results overall are returned and not based on matching events which are always 0.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I couldn't created an alert by this output since alerts are created based on the "events" (which is always 0 in this case) and not on the "results" (which are not events but some sort of stats about hosts). I have tried several ways to create alert based on above output but couldn't. Please write high level steps about how (logic) to create an alert based on results overall and on not matching events using splunk manager gui AFTER I have received above result from the search.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-based-on-metadata-command-output/m-p/52719#M699</guid>
      <dc:creator>dearimranz</dc:creator>
      <dc:date>2020-09-28T14:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts based on metadata command output</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-based-on-metadata-command-output/m-p/52720#M700</link>
      <description>&lt;P&gt;As you've noticed the results presented are not based on the events. I.e. the search process will not search through a gazillion events to find those that match e.g. a string like 'error'. Instead the metadata command will look at the metadata for the indexes and buckets. This is a MUCH faster operation, and there will be no matching events, since the events were not even searched. That is also why you only have a limited set of search options, there simply is not all that much to search upon.&lt;/P&gt;

&lt;P&gt;However, In your case it would probably be a good idea to look at the Splunk Deployment Monitor app, which can help you alert on missing forwarders and sourcetypes etc etc. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/67836/splunk-deployment-monitor"&gt;http://splunk-base.splunk.com/apps/67836/splunk-deployment-monitor&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2013 21:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-based-on-metadata-command-output/m-p/52720#M700</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-06-01T21:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts based on metadata command output</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-based-on-metadata-command-output/m-p/52721#M701</link>
      <description>&lt;P&gt;Thanks for the quick response Kristian. Yes, I have enabled Deployment Monitor app and was just curious if it is possible to create alerts without this app.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2013 23:51:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-based-on-metadata-command-output/m-p/52721#M701</guid>
      <dc:creator>dearimranz</dc:creator>
      <dc:date>2013-06-01T23:51:07Z</dc:date>
    </item>
  </channel>
</rss>

