<?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 Help needed with Splunk Search in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/624888#M14590</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to develop a Splunk alert for one of the source where we are ingesting data using REST API by configuring the scripted input on our Heavy Forwarder, I wanted to set up an email alert when ever there is an interruption in data ingestion from the source.&lt;BR /&gt;&lt;BR /&gt;I am using the below search but not seeing any results.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as latest where index=XYZ by source
| eval recent = if(latest &amp;gt; relative_time(now(),"-10m"),1,0), realLatest = strftime(latest,"%c")
| where recent=0&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Can someone please help me with the search?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 04:48:19 GMT</pubDate>
    <dc:creator>Roy_9</dc:creator>
    <dc:date>2022-12-21T04:48:19Z</dc:date>
    <item>
      <title>Help needed with Splunk Search</title>
      <link>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/624888#M14590</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to develop a Splunk alert for one of the source where we are ingesting data using REST API by configuring the scripted input on our Heavy Forwarder, I wanted to set up an email alert when ever there is an interruption in data ingestion from the source.&lt;BR /&gt;&lt;BR /&gt;I am using the below search but not seeing any results.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as latest where index=XYZ by source
| eval recent = if(latest &amp;gt; relative_time(now(),"-10m"),1,0), realLatest = strftime(latest,"%c")
| where recent=0&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Can someone please help me with the search?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 04:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/624888#M14590</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2022-12-21T04:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Splunk Search</title>
      <link>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/624911#M14591</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;, do you have any idea on this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 00:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/624911#M14591</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2022-12-21T00:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Splunk Search</title>
      <link>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/624947#M14593</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224632"&gt;@Roy_9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Do you see any results when you search below result?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as latest where index=XYZ by source&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;* Are you running it on Search head and not on heavy forwarder?&lt;/P&gt;&lt;P&gt;* If it's working in normal scenario, then you can append below line and generate error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count
| appendpipe [| where count=0 | eval msg="No data found"]
| where count=0&lt;/LI-CODE&gt;&lt;P&gt;* And you can set a schedule alert on this for example for every 1 hour and run it for the last 1 hour time. And this alert will trigger when there will be no event from the given source in last 1 hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 09:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/624947#M14593</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-12-21T09:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Splunk Search</title>
      <link>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/625498#M14618</link>
      <description>&lt;P&gt;No&amp;nbsp;@Anonymous&lt;/P&gt;&lt;P&gt;Currently we are not getting any data for those indexes, i would like to set up an alert in such a way whenever data is being getting indexed to those indexes and during the ingestion if there are any issues.&lt;BR /&gt;&lt;BR /&gt;I created a lookup with the metadata and tweaked the search a little and was able to set it up.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 22:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-needed-with-Splunk-Search/m-p/625498#M14618</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2022-12-29T22:23:31Z</dc:date>
    </item>
  </channel>
</rss>

