<?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 timechart, timewrap output alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672146#M15645</link>
    <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;I am looking for the help to get an alert trigger if the latest result of timechart command is 0.&lt;BR /&gt;&lt;BR /&gt;Suppose i am running a search for last&amp;nbsp; 8hrs with span=2hrs. so, if the result is something like below should raise an alert.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;12-18-23 00:00 ---&amp;gt; is "0"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cbiraris_0-1702884682349.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28560iAED367D7A1D5DD3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cbiraris_0-1702884682349.png" alt="cbiraris_0-1702884682349.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;and also it should is display if there is "0" events in last 8hrs. as i am getting nothing, if no events during that time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 07:43:50 GMT</pubDate>
    <dc:creator>cbiraris</dc:creator>
    <dc:date>2023-12-18T07:43:50Z</dc:date>
    <item>
      <title>timechart, timewrap output alert</title>
      <link>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672146#M15645</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;I am looking for the help to get an alert trigger if the latest result of timechart command is 0.&lt;BR /&gt;&lt;BR /&gt;Suppose i am running a search for last&amp;nbsp; 8hrs with span=2hrs. so, if the result is something like below should raise an alert.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;12-18-23 00:00 ---&amp;gt; is "0"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cbiraris_0-1702884682349.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28560iAED367D7A1D5DD3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cbiraris_0-1702884682349.png" alt="cbiraris_0-1702884682349.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;and also it should is display if there is "0" events in last 8hrs. as i am getting nothing, if no events during that time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 07:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672146#M15645</guid>
      <dc:creator>cbiraris</dc:creator>
      <dc:date>2023-12-18T07:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: timechart, timewrap output alert</title>
      <link>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672151#M15646</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247215"&gt;@cbiraris&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could simplify your alert running it every two hours using a simple search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-2h@h latest=@h&lt;/LI-CODE&gt;&lt;P&gt;that fires if you haven't results.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 08:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672151#M15646</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-18T08:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: timechart, timewrap output alert</title>
      <link>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672154#M15647</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Thank you for response&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also want result of previous 8hrs with 2hrs interval to be displayed in alert result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 08:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672154#M15647</guid>
      <dc:creator>cbiraris</dc:creator>
      <dc:date>2023-12-18T08:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: timechart, timewrap output alert</title>
      <link>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672164#M15648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247215"&gt;@cbiraris&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;adapt this sample to you use case:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _time=strptime("2023-12-18 02:01:01","%Y-%m-%d %H:%M:%S")
| append [ | makeresults | eval _time=strptime("2023-12-18 04:01:01","%Y-%m-%d %H:%M:%S") ]
| append [ | makeresults | eval _time=strptime("2023-12-18 06:01:01","%Y-%m-%d %H:%M:%S") ]
| timechart count span=1h
| eval col=strftime(_time,"%Y-%m-%d %H:%M:%S")." - ".count
| stats values(col) AS col latest(count) AS latest
| where latest=0&lt;/LI-CODE&gt;&lt;P&gt;it shuld be something similar to this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| timechart count span=1h
| eval col=strftime(_time,"%Y-%m-%d %H:%M:%S")." - ".count
| stats values(col) AS col latest(count) AS latest
| where latest=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 09:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/timechart-timewrap-output-alert/m-p/672164#M15648</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-18T09:31:54Z</dc:date>
    </item>
  </channel>
</rss>

