<?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: Eval expression using the usecase in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/638429#M221267</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My usecase is of in between 2 hours if users triggers an alert other than pdm more than 3 times !&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 17:46:23 GMT</pubDate>
    <dc:creator>AL3Z</dc:creator>
    <dc:date>2023-04-03T17:46:23Z</dc:date>
    <item>
      <title>How to achieve eval expression using the usecase in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/636938#M221182</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm trying to write the spl query on&amp;nbsp; usecase like&amp;nbsp; alertname!="*pdm*"&amp;nbsp; triggerred by user in between like 2 hours how could we achieve using it eval expression.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 19:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/636938#M221182</guid>
      <dc:creator>AL3Z</dc:creator>
      <dc:date>2023-04-03T19:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Eval expression using the usecase in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/636985#M221188</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To find events over the last two hours, use a search similar to the following:&lt;/P&gt;&lt;P&gt;index=foo alertname!="*pdm*" earliest_time=-2h latest_time=now&lt;/P&gt;&lt;P&gt;To find multiple occurrences of events by user in a rolling two hour window, schedule an hourly search similar to the following:&lt;/P&gt;&lt;P&gt;index=foo alertname!="*pdm*" earliest_time=-2h@h latest_time=@h&lt;BR /&gt;| eventstats count by alertname user&lt;BR /&gt;| where count&amp;gt;1&lt;/P&gt;&lt;P&gt;To increase the frequency of detection, change the schedule and snap the time values to the same interval. For example, to search a rolling 2 hour window every minute:&lt;/P&gt;&lt;P&gt;index=foo alertname!="*pdm*" earliest_time=-2h@m latest_time=@m&lt;BR /&gt;| eventstats count by alertname user&lt;BR /&gt;| where count&amp;gt;1&lt;/P&gt;&lt;P&gt;You may need to modify your scheduled search settings relative to indexing and scheduling lag in your environment or alternatively, loosen your earliest_time and latest_time predicates and use _index_earliest and _index_latest to constrain the event window. More information on time modifiers is available at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Searchtimemodifiers" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Searchtimemodifiers&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Is there a more complex problem you're trying to solve?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 23:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/636985#M221188</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2023-03-31T23:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Eval expression using the usecase in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/638429#M221267</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My usecase is of in between 2 hours if users triggers an alert other than pdm more than 3 times !&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 17:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/638429#M221267</guid>
      <dc:creator>AL3Z</dc:creator>
      <dc:date>2023-04-03T17:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Eval expression using the usecase in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/639041#M221427</link>
      <description>&lt;P&gt;If your alerts are triggered no more frequently than once per minute, the last example should work with an adjusted threshold:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=foo alertname!="*pdm*" earliest_time=-2h@m latest_time=@m&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eventstats count by alertname user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| where count&amp;gt;3&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 15:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/639041#M221427</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2023-04-06T15:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve eval expression using the usecase in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/639113#M221443</link>
      <description>&lt;P&gt;&lt;SPAN&gt;index="YouShouldAlwaysSpecifyYourIndex" AND sourcetype="AndYourSourcetypeToo" AND alertname!="*pdm*"&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;| streamstats time_window=2h count by alertname user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| where count&amp;gt;3&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 23:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-eval-expression-using-the-usecase-in-Splunk/m-p/639113#M221443</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-06T23:19:42Z</dc:date>
    </item>
  </channel>
</rss>

