{"id":73207,"date":"2023-05-04T12:18:10","date_gmt":"2023-05-04T12:18:10","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=73207"},"modified":"2023-05-04T12:18:10","modified_gmt":"2023-05-04T12:18:10","slug":"answer-by-warren-for-how-to-trigger-an-custom-alert-condition-of-multiples-from-the-basic-search-of-splunk","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=73207","title":{"rendered":"Answer by warren for How to trigger an custom alert condition of multiples from the basic search of Splunk?"},"content":{"rendered":"<p>Splunk is case-senstive &#8230; except where it isn&#8217;t \ud83d\ude42<\/p>\n<p>By default <code>search<\/code> ANDs<\/p>\n<p>But if you want to be <em>explicit<\/em>, you <em>must<\/em> all-caps <code>AND<\/code> &#8211; just like you <em>must<\/em> all-caps <code>OR<\/code>:<\/p>\n<pre><code>index=ndx sourcetype=srctp &quot;someval&quot; &quot;someotherval&quot;\n<\/code><\/pre>\n<p>Is the <em>same<\/em> as:<\/p>\n<pre><code>index=ndx AND sourcetype=srctp AND &quot;someval&quot; AND &quot;someotherval&quot;\n<\/code><\/pre>\n<p>Splunk views &quot;and&quot; as raw text to look for, whereas &quot;AND&quot; is an operator<\/p>\n<p>So this should be what you&#8217;re looking for (though I generally agree with @<a href=\"https:\/\/stackoverflow.com\/users\/2227420\/richg\">RichG<\/a>&#8216;s <a href=\"https:\/\/stackoverflow.com\/a\/76166231\/4418\">answer<\/a> wherein he says you should make the filter in the Alert, and only send if the results are greater than 0):<\/p>\n<pre><code>search NDMCopycount=1 DCOEtransfercount=* NOT (DCOEtransfercount IN(0,1))\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/76165667\/how-to-trigger-an-custom-alert-condition-of-multiples-from-the-basic-search-of-s\/76173057#76173057<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Splunk is case-senstive &#8230; except where it isn&#8217;t \ud83d\ude42 By default search ANDs But if you want to be explicit, you must all-caps AND &#8211; just like you must all-caps OR: index=ndx sourcetype=srctp &quot;someval&quot; &quot;someotherval&quot; Is the same as: index=ndx AND sourcetype=srctp AND &quot;someval&quot; AND &quot;someotherval&quot; Splunk views &quot;and&quot; as raw text to look for, &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=73207\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for How to trigger an custom alert condition of multiples from the basic search of Splunk?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[991],"keyring_services":[],"class_list":["post-73207","post","type-post","status-publish","format-standard","hentry","category-blih","tag-stackexchange"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73207"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73207\/revisions"}],"predecessor-version":[{"id":73208,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73207\/revisions\/73208"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73207"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=73207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}