<?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: Please help to setup alert in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632344#M219664</link>
    <description>&lt;P&gt;Your search is looking for values greater than specific values. Do these indicate that the namespace has gone below its threshold? If so, just copy the search into an alert and trigger when there are greater than zero results.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 10:41:11 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-02-27T10:41:11Z</dc:date>
    <item>
      <title>Please help to setup alert?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632319#M219648</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=* ("ORC from FCS completed" OR "ORC from SDS completed." OR "ORC from ROUTER completed") namespace IN ("dk1692-b","dk1399-b","dk1371-b")
| eval dk1692=if(searchmatch("\"ORC from ROUTER completed\" namespace=dk1692-b"),1,0)
| eval dk1399=if(searchmatch("\"ORC from SDS completed\" namespace=dk1399-b"),1,0)
| eval dk1371=if(searchmatch("\"ORC from FCS completed\" namespace=dk1371-b"),1,0)
| stats sum(dk*) as dk*
| search dk1692&amp;gt;90 OR dk1399&amp;gt;60 OR dk1371&amp;gt;60&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am getting attached output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1677482540712.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24049i6CDC875D3AD7AD78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1677482540712.png" alt="bhaskar5428_0-1677482540712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Problem statement ,&lt;BR /&gt;i would like setup alert where ever specific namespace **bleep** goes below its threshold which mention in search query.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632319#M219648</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-27T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632344#M219664</link>
      <description>&lt;P&gt;Your search is looking for values greater than specific values. Do these indicate that the namespace has gone below its threshold? If so, just copy the search into an alert and trigger when there are greater than zero results.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 10:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632344#M219664</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-27T10:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632346#M219665</link>
      <description>&lt;P&gt;Sorry , please check latest screen shot , in this wherever&amp;nbsp; namespace value less than threashhod it shoud throw email alert&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example - dk1399 is 45 which is less than 60&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1677495212425.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24053i87291326C8E54F03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1677495212425.png" alt="bhaskar5428_0-1677495212425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 10:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632346#M219665</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-27T10:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632348#M219666</link>
      <description>&lt;P&gt;OK, so the fact that this search returns any rows means that at least one of the namespaces is below its threshold. You can use this fact as the trigger in your alert&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1677495642402.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24054iD264D018280B08F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1677495642402.png" alt="ITWhisperer_0-1677495642402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 11:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632348#M219666</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-27T11:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632353#M219669</link>
      <description>&lt;P&gt;Yes but there are three namespaces with different threshould&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do i have to setup 3 different alerts by using less than trigger ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1677499385972.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24056i59A5F13AB95BFCD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1677499385972.png" alt="bhaskar5428_0-1677499385972.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 12:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632353#M219669</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-27T12:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632365#M219670</link>
      <description>&lt;P&gt;It depends on your requirement. You could have a single alert for any of them being below the threshold, or if you had them in different rows, you could still have a single alert that would trigger for each result.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where dk1692&amp;lt;90 OR dk1399&amp;lt;60 OR dk1371&amp;lt;60
| eval _time=now()
| untable _time namespace count
| where (namespace="dk1692" and count&amp;lt;90) OR (namespace="dk1399" and count&amp;lt;60) OR (namespace="dk1371" and count&amp;lt;60)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Feb 2023 13:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632365#M219670</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-27T13:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632476#M219709</link>
      <description>&lt;P&gt;&lt;STRONG&gt;index=* ("ORC from FCS completed" OR "ORC from SDS completed." OR "ORC from ROUTER completed") namespace IN ("dk1692-b","dk1399-b","dk1371-b")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval dk1692=if(searchmatch("\"ORC from ROUTER completed\" namespace=dk1692-b"),1,0)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval dk1399=if(searchmatch("\"ORC from SDS completed\" namespace=dk1399-b"),1,0)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval dk1371=if(searchmatch("\"ORC from FCS completed\" namespace=dk1371-b"),1,0)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| stats sum(dk*) as dk*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| search dk1692&amp;lt;90 OR dk1399&amp;lt;60 OR dk1371&amp;lt;60&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval _time=now()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| untable _time namespace count&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| where (namespace="dk1692" and count&amp;lt;90) OR (namespace="dk1399" and count&amp;lt;60) OR (namespace="dk1371" and count&amp;lt;60)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;this query good as per my requirement , however how can i setup alert with trigger&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because its giving one row and count.&lt;/P&gt;&lt;P&gt;for setting up condition can i use&amp;nbsp;&lt;BR /&gt;number of results - is greater than = 0&lt;BR /&gt;&lt;BR /&gt;*** So whenever there is record in above query it will send alert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1677559034501.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24075iB48821034CCF7E54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1677559034501.png" alt="bhaskar5428_0-1677559034501.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_1-1677559060821.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24076i1BEEE53AD7D20B0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_1-1677559060821.png" alt="bhaskar5428_1-1677559060821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 04:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632476#M219709</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-28T04:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632480#M219710</link>
      <description>&lt;P&gt;index=* ("ORC from FCS completed" OR "ORC from SDS completed." OR "ORC from ROUTER completed" OR "ORC from EMS completed" OR "ORC from TDS completed") namespace IN ("dk1692-b","dk1399-b","dk1371-b","dk1398-b","dk1400-c")&lt;BR /&gt;| eval dk1692=if(searchmatch("\"ORC from ROUTER completed\" namespace=dk1692-b"),1,0)&lt;BR /&gt;| eval dk1399=if(searchmatch("\"ORC from SDS completed\" namespace=dk1399-b"),1,0)&lt;BR /&gt;| eval dk1371=if(searchmatch("\"ORC from FCS completed\" namespace=dk1371-b"),1,0)&lt;BR /&gt;| eval dk1398=if(searchmatch("\"ORC from EMS completed\" namespace=dk1398-b"),1,0)&lt;BR /&gt;| eval dk1400=if(searchmatch("\"ORC from TDS completed\" namespace=dk1400-c"),1,0)&lt;BR /&gt;| stats sum(dk*) as dk*&lt;BR /&gt;| search dk1692&amp;lt;90 OR dk1399&amp;lt;60 OR dk1371&amp;lt;60 OR dk1398&amp;lt;60 OR dk1400&amp;lt;60&lt;BR /&gt;| eval _time=now()&lt;BR /&gt;| untable _time namespace count&lt;BR /&gt;| where (namespace="dk1692" and count&amp;lt;90) OR (namespace="dk1399" and count&amp;lt;60) OR (namespace="dk1371" and count&amp;lt;60) OR (namespace="dk1398" and count&amp;lt;60) OR (namespace="dk1400" and count&amp;lt;60)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Thanks in above query , i would like to add one more column which says which namespace is below threshold&amp;nbsp;&lt;/P&gt;&lt;P&gt;example if namespace&amp;nbsp;dk1399-b below 60 it column is should show name SDS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 05:45:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632480#M219710</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-28T05:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632511#M219718</link>
      <description>&lt;P&gt;If you also set "For each result", you will get a triggered action for each row i.e. each namespace that is below its threshold&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1677571110575.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24088i911C93C18234682D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1677571110575.png" alt="ITWhisperer_0-1677571110575.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You would need to set an action to be triggered, e.g. an email being sent for each trigger.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 08:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632511#M219718</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-28T08:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632521#M219720</link>
      <description>&lt;P&gt;I would like to use throttle option&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when am using each result option for trigger its asking field name suppressing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to manage that ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 08:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632521#M219720</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-28T08:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632522#M219721</link>
      <description>&lt;P&gt;You could try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;namespace = $result.namespace$&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Feb 2023 08:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632522#M219721</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-28T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632524#M219722</link>
      <description>&lt;P&gt;you mean i need to add value&lt;/P&gt;&lt;PRE&gt;namespace = $result.namespace$&lt;/PRE&gt;&lt;P&gt;into&amp;nbsp;Suppress results containing field value ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please confirm&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Feb 2023 09:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632524#M219722</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-28T09:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632526#M219723</link>
      <description>&lt;P&gt;That is what I mean - give it a try&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 09:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632526#M219723</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-28T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to setup alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632555#M219730</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 11:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-to-setup-alert/m-p/632555#M219730</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2023-02-28T11:51:24Z</dc:date>
    </item>
  </channel>
</rss>

