<?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 make a query that will trigger when second query finds nothing. in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589953#M13635</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244104"&gt;@intrach&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 09:09:01 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-03-21T09:09:01Z</dc:date>
    <item>
      <title>How to make a query that will trigger when second query finds nothing?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589924#M13625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am a beginner in splunk and would like to ask if anyone can help me with creating a search or alert that would trigger if a certain condition 2 is not seen.&lt;/P&gt;
&lt;P&gt;Example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first condition is if src_ip has event 1234 and event 2345 that is allowed in WAF,&lt;/P&gt;
&lt;P&gt;then&amp;nbsp; second condition is to check if same src_ip does not have event 3456 in IPS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 17:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589924#M13625</guid>
      <dc:creator>intrach</dc:creator>
      <dc:date>2022-03-21T17:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a query that will trigger when second query finds nothing.</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589933#M13628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244104"&gt;@intrach&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if in the second search you have less than 50,000 results, you could use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=waf (src_ip="1234" OR src_ip="2345") NOT [ search index=ips src="3456" | dedup src_ip | fields src_ip ]
| ...&lt;/LI-CODE&gt;&lt;P&gt;if instead, you have more than 50,000 results in the second search, you have to use a different solution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=waf (src_ip="1234" OR src_ip="2345")) OR (index=ips src="3456")
| stats dc(index9 AS dc_index values(index) AS index BY src_ip
| where dc_index=1 AND index=waf
| ...&lt;/LI-CODE&gt;&lt;P&gt;if you need more fields using the second search, you can add them as values in the stats command.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 07:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589933#M13628</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-21T07:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a query that will trigger when second query finds nothing.</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589938#M13630</link>
      <description>&lt;P&gt;Hi Thanks,&lt;BR /&gt;&lt;BR /&gt;It just got a bit more complicated, so now this is the use case we want to&amp;nbsp; explore&lt;BR /&gt;a. Successful and blocked request from the same IP address in WAF&lt;BR /&gt;b. If the same IP in the WAF is blocked at the IPS, don’t alert&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any idea on this? Thank you so much&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 07:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589938#M13630</guid>
      <dc:creator>intrach</dc:creator>
      <dc:date>2022-03-21T07:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a query that will trigger when second query finds nothing.</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589941#M13631</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244104"&gt;@intrach&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: what are the conditions for successful and blocked in waf?&lt;/P&gt;&lt;P&gt;it should be action=allowed and action=denied.&lt;/P&gt;&lt;P&gt;Then you don't want to trigger if the src_ip is in ips, is it correct?&lt;/P&gt;&lt;P&gt;If this is the condition, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=waf (src_ip="1234" OR src_ip="2345") (action=allowed OR action=denied) NOT [ search index=ips src="3456" | dedup src_ip | fields src_ip ]
| stats dc(action) AS dc_action BY src_ip
| where dc_action=2&lt;/LI-CODE&gt;&lt;P&gt;If the above condition aren't the ones you need, please, describe your conditions to test.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 08:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589941#M13631</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-21T08:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a query that will trigger when second query finds nothing.</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589946#M13634</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 08:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589946#M13634</guid>
      <dc:creator>intrach</dc:creator>
      <dc:date>2022-03-21T08:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a query that will trigger when second query finds nothing.</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589953#M13635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244104"&gt;@intrach&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 09:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-make-a-query-that-will-trigger-when-second-query-finds/m-p/589953#M13635</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-21T09:09:01Z</dc:date>
    </item>
  </channel>
</rss>

