<?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: Alert not triggering based on tstats results in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687883#M16030</link>
    <description>&lt;P&gt;Ok, then you have that role.&lt;/P&gt;&lt;P&gt;How you have defined this alert? Can you give a screenshot about it?&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 14:02:59 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2024-05-17T14:02:59Z</dc:date>
    <item>
      <title>Alert not triggering based on tstats results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687733#M16025</link>
      <description>&lt;P&gt;We've run into a few occassions where one of our network devices stops sending logs to Splunk. I have a tstats search based on the blog post here:&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-determine-when-a-host-stops-sending-logs-to-splunk-expeditiously.html" target="_self"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-determine-when-a-host-stops-sending-logs-to-splunk-expeditiously.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the search expression I'm using:&lt;/P&gt;&lt;PRE&gt;| tstats latest(_time) as latest where index=index_name earliest=-1d by host&lt;BR /&gt;| eval recent = if(latest &amp;gt; relative_time(now(),"-15m"),1,0), realLatest = strftime(latest,"%c")&lt;BR /&gt;| where recent=0&lt;/PRE&gt;&lt;P&gt;My tstats search does return the hosts that have not sent any logs, but it never triggers when I use this search in an Alert. I noticed that the search only shows the hosts in the Statistics view and there are no Events. Is this why my event is not triggering?&lt;/P&gt;&lt;P&gt;I've found several other examples on this forum of people using tstats to detect when a host stops sending logs. Is there something special they are configuring in their Alert to trigger off of the statistics results?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 12:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687733#M16025</guid>
      <dc:creator>rhombus00</dc:creator>
      <dc:date>2024-05-16T12:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alert not triggering based on tstats results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687790#M16026</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this should works. Are you sure that you have granted a role which allow you to run alerts?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 20:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687790#M16026</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-05-16T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alert not triggering based on tstats results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687793#M16028</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I don't know much about role/permissions but I have created dozens of other alerts. The only difference I can tell is all my other alerts use searches that return events when triggered. This search only returns results in the statistics section.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 May 2024 20:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687793#M16028</guid>
      <dc:creator>rhombus00</dc:creator>
      <dc:date>2024-05-16T20:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alert not triggering based on tstats results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687883#M16030</link>
      <description>&lt;P&gt;Ok, then you have that role.&lt;/P&gt;&lt;P&gt;How you have defined this alert? Can you give a screenshot about it?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 14:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/687883#M16030</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-05-17T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alert not triggering based on tstats results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/688924#M16041</link>
      <description>&lt;P&gt;You're right that it should work. Thanks for the sanity check.&lt;/P&gt;&lt;P&gt;I deleted the alert and started from scratch and it's working as expected now. I think I messed up the notification settings when I was originally tinkering with it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 00:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-not-triggering-based-on-tstats-results/m-p/688924#M16041</guid>
      <dc:creator>rhombus00</dc:creator>
      <dc:date>2024-05-29T00:30:29Z</dc:date>
    </item>
  </channel>
</rss>

