<?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: How to create Splunk Alert based on custom condition? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-Alert-based-on-custom-condition/m-p/437633#M124602</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo
| eval ago = now() - LastUpdateTime
| where ago &amp;gt;= (30 * 60)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Jun 2019 00:26:23 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-06-24T00:26:23Z</dc:date>
    <item>
      <title>How to create Splunk Alert based on custom condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-Alert-based-on-custom-condition/m-p/437631#M124600</link>
      <description>&lt;P&gt;New to Splunk, can anyone please help me with the below scenario?&lt;/P&gt;

&lt;P&gt;I am receiving events like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Event    LastUpdateTime
Event1  21/06/2019 10.05AM
Event2  21/06/2019 10.08AM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have to create an alert for all those events if my current time(system time) and the LastUpdateTime difference is more than 30 minutes, in this scenario what will be my search string.&lt;BR /&gt;
It would be a great help if someone can assist me with this. &lt;/P&gt;

&lt;P&gt;Nilanjan&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-Alert-based-on-custom-condition/m-p/437631#M124600</guid>
      <dc:creator>nilanjankc</dc:creator>
      <dc:date>2019-06-21T15:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Splunk Alert based on custom condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-Alert-based-on-custom-condition/m-p/437632#M124601</link>
      <description>&lt;P&gt;It'll be something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search to select your data with fields "Event" "LastUpdateTime"
| where now()-strptime('LastUpdateTime',"%d/%m/%Y %H.%M%p") &amp;gt;1800
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-Alert-based-on-custom-condition/m-p/437632#M124601</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-06-21T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Splunk Alert based on custom condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-Alert-based-on-custom-condition/m-p/437633#M124602</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo
| eval ago = now() - LastUpdateTime
| where ago &amp;gt;= (30 * 60)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jun 2019 00:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-Alert-based-on-custom-condition/m-p/437633#M124602</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-24T00:26:23Z</dc:date>
    </item>
  </channel>
</rss>

