<?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 setup alerts for 2 differnt condition in single saves search? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412630#M11562</link>
    <description>&lt;P&gt;yes it worked:) thanks&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 05:00:06 GMT</pubDate>
    <dc:creator>ashanka</dc:creator>
    <dc:date>2019-06-11T05:00:06Z</dc:date>
    <item>
      <title>HOw to setup alerts for 2 differnt condition in single saves search?</title>
      <link>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412626#M11558</link>
      <description>&lt;P&gt;trying to setup an alert for certificate expiry. First alert will say, certificate will expire on 90 days. How to setup next alert when the expiry days = 60 days within the same alert?&lt;/P&gt;

&lt;P&gt;ns=application_logs "Cert DN = CN=E3.certificate"&lt;BR /&gt;&lt;BR /&gt;
| table Number, DN,Date&lt;BR /&gt;
| dedup Number, DN,Date&lt;BR /&gt;
|eval dateDue=strptime('Date',"%a %b %d %H:%M:%S %Z %Y")&lt;BR /&gt;
| eval days = round((dateDue-now())/86400)&lt;BR /&gt;
| table Number, DN,Date,dateDue,days&lt;BR /&gt;
| search days = 90&lt;/P&gt;

&lt;P&gt;Here i have setup an alert when condition satisfies expiry days = 90. I need to setup a another alert when expiry days = 60.&lt;/P&gt;

&lt;P&gt;First alert will be on when days = 90, next should be on days = 60&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 03:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412626#M11558</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2019-06-11T03:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to setup alerts for 2 differnt condition in single saves search?</title>
      <link>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412627#M11559</link>
      <description>&lt;P&gt;Dear @ashanka,&lt;/P&gt;

&lt;P&gt;Try the below option. &lt;/P&gt;

&lt;P&gt;| search days = 90 OR days = 60&lt;/P&gt;

&lt;P&gt;Thanks .. &lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 04:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412627#M11559</guid>
      <dc:creator>Shan</dc:creator>
      <dc:date>2019-06-11T04:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to setup alerts for 2 differnt condition in single saves search?</title>
      <link>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412628#M11560</link>
      <description>&lt;P&gt;@ashanka add both conditions in the same search filter with &lt;CODE&gt;OR&lt;/CODE&gt; condition so that records are returned in either case for 90 days and 60 days.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourCurrentSearch&amp;gt;
| search days=90 OR days=60
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 04:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412628#M11560</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-06-11T04:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to setup alerts for 2 differnt condition in single saves search?</title>
      <link>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412629#M11561</link>
      <description>&lt;P&gt;Thanks shankar, it worked&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 04:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412629#M11561</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2019-06-11T04:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to setup alerts for 2 differnt condition in single saves search?</title>
      <link>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412630#M11562</link>
      <description>&lt;P&gt;yes it worked:) thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 05:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/HOw-to-setup-alerts-for-2-differnt-condition-in-single-saves/m-p/412630#M11562</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2019-06-11T05:00:06Z</dc:date>
    </item>
  </channel>
</rss>

