<?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: Threshold varies base on time in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Is-it-possible-to-define-2-threshold-based-on-time/m-p/646026#M79244</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;please try this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ABC sourcetype=XYZ failedlogin 
| stats count earliest(_time) AS _time
| eval time_hour=strftime(_time,"%H")
| eval threeshold=if(time_hour&amp;lt;15,100,20)
| where count&amp;gt;threeshold&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 07:11:09 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-06-07T07:11:09Z</dc:date>
    <item>
      <title>Is it possible to define 2 threshold based on time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Is-it-possible-to-define-2-threshold-based-on-time/m-p/646023#M79243</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;I am trying to schedule a alert base on threshold for 2 time window.&lt;BR /&gt;&lt;BR /&gt;100 events between 00:00 to 14:00&amp;nbsp;&lt;BR /&gt;20 events&amp;nbsp;between&amp;nbsp; &amp;nbsp;14:00 to&amp;nbsp;00:00&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;is it possible to define 2 threshold like above ? in one alert&lt;BR /&gt;&lt;BR /&gt;index=ABC sourcetype=XYZ failedlogin |stats count |where count &amp;gt;100&amp;nbsp; &amp;nbsp;between 00:00 to 14:00&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=ABC sourcetype=XYZ failedlogin |stats count |where count &amp;gt;20 between 14:00 to&amp;nbsp;00:00&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 07:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Is-it-possible-to-define-2-threshold-based-on-time/m-p/646023#M79243</guid>
      <dc:creator>cbiraris</dc:creator>
      <dc:date>2023-06-07T07:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Threshold varies base on time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Is-it-possible-to-define-2-threshold-based-on-time/m-p/646026#M79244</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;please try this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ABC sourcetype=XYZ failedlogin 
| stats count earliest(_time) AS _time
| eval time_hour=strftime(_time,"%H")
| eval threeshold=if(time_hour&amp;lt;15,100,20)
| where count&amp;gt;threeshold&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 07:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Is-it-possible-to-define-2-threshold-based-on-time/m-p/646026#M79244</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-07T07:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Threshold varies base on time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Is-it-possible-to-define-2-threshold-based-on-time/m-p/646032#M79245</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Its working&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 07:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Is-it-possible-to-define-2-threshold-based-on-time/m-p/646032#M79245</guid>
      <dc:creator>cbiraris</dc:creator>
      <dc:date>2023-06-07T07:22:27Z</dc:date>
    </item>
  </channel>
</rss>

