<?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 edit my search to alert once per result for multiple hosts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248273#M74083</link>
    <description>&lt;P&gt;It sounds like perhaps the customer is responsible for a subset of the hosts that are contained in the result set. For example, the search may produce alerts for hosts host1, host2, host 3, and host4 but this customer wants one alert when either host1 or host3 trigger.&lt;/P&gt;

&lt;P&gt;If that's accurate, then you can create a flag (if you will) for their hosts and then use that flag as the suppression:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval flag = if( host=="host1" , "annoying_customer", "pleasant_customer" )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sense or did I still not understand?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 13:36:41 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2017-01-25T13:36:41Z</dc:date>
    <item>
      <title>How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248253#M74063</link>
      <description>&lt;P&gt;We are using Splunk 6.4.2 and I have alerting setup on a specific search as follows: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = wineventlogs 
sourcetype = wineventlog_sec 
host=SERVER12VWIN OR host=SERVER82VWIN OR host=SERVER13VWIN OR host=SERVER81VWIN OR host=SERVER180VWN OR host=SERVER14VWIN OR host=SERVER15VWIN OR host=SERVER83VWIN OR host=SERVER001VWIN OR host=SERVER049VWIN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We would like to be alerted for each event that comes up on the individual host; however, when the alerting happens, it creates multiple events under one alert.  Unfortunately, due to the request of only wanting to alert on the specific 10 hosts out of 25 hosts, I have to include the host names in the search.  I do have alert mode set to: "Once per Result".  Is there something that can be changed so Splunk alerts if any of these hosts events show?  As stated, we would like it to be one alert for each event.&lt;/P&gt;

&lt;P&gt;Should I change the search or do I need to set up alerting individually for each one?  Any suggestions would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248253#M74063</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-20T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248254#M74064</link>
      <description>&lt;P&gt;When you edit the alert from Alerts dashboard, on first page, the alert type will be 'scheduled'. Click on next to go to 'Enable action' screen, scroll down to 'Action options' section. Right now it should be 'Once' for 'When triggered execute actions'. Change it to 'For each result'. Please note that if there are more than 1 rows for a host in your resultset, you'll get that many alert. To be sure, I would run some aggregation on your alert search.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 15:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248254#M74064</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-20T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248255#M74065</link>
      <description>&lt;P&gt;Thank you for your quick response and I do already have it set to trigger "for each result".  I am trying to determine if having all the hosts in my search is creating contention in the trigger, as it returns multiple events for different hosts as one event trigger.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 15:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248255#M74065</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-20T15:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248256#M74066</link>
      <description>&lt;P&gt;Assuming the search is the exact alert search, try something like this. basically combining the search to merge all events related to a host as one row, so you get one alert per host.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = wineventlogs 
sourcetype = wineventlog_sec 
host=SERVER12VWIN OR host=SERVER82VWIN OR host=SERVER13VWIN OR host=SERVER81VWIN OR host=SERVER180VWN OR host=SERVER14VWIN OR host=SERVER15VWIN OR host=SERVER83VWIN OR host=SERVER001VWIN OR host=SERVER049VWIN | transaction host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = wineventlogs 
sourcetype = wineventlog_sec 
host=SERVER12VWIN OR host=SERVER82VWIN OR host=SERVER13VWIN OR host=SERVER81VWIN OR host=SERVER180VWN OR host=SERVER14VWIN OR host=SERVER15VWIN OR host=SERVER83VWIN OR host=SERVER001VWIN OR host=SERVER049VWIN | stats values(_raw) as _raw by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jan 2017 16:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248256#M74066</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-20T16:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248257#M74067</link>
      <description>&lt;P&gt;Thank you, I will try adding that to my search now and will update the post accordingly.  I appreciate your expertise and assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 16:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248257#M74067</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-20T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248258#M74068</link>
      <description>&lt;P&gt;Unfortunately, neither of these have worked.  Any other suggestions or even different ways to monitor the events individually?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:52:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248258#M74068</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-23T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248259#M74069</link>
      <description>&lt;P&gt;Try this as well&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = wineventlogs 
 sourcetype = wineventlog_sec 
 host=SERVER12VWIN OR host=SERVER82VWIN OR host=SERVER13VWIN OR host=SERVER81VWIN OR host=SERVER180VWN OR host=SERVER14VWIN OR host=SERVER15VWIN OR host=SERVER83VWIN OR host=SERVER001VWIN OR host=SERVER049VWIN | dedup host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, when you say it didn't work, what was happening?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248259#M74069</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-23T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248260#M74070</link>
      <description>&lt;P&gt;I will try that now.&lt;BR /&gt;&lt;BR /&gt;
The alerting works, but it will group all the hosts into one alert.  So, the file (pdf) that gets emailed to our support teams will contain multiple events, instead of one pdf (alert) for each host.&lt;/P&gt;

&lt;P&gt;The goal is to have one host alert and then a separate ticket is automatically generated to the support teams.  Currently, it is opening one ticket for multiple hosts.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 18:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248260#M74070</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-23T18:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248261#M74071</link>
      <description>&lt;P&gt;Is the alert properly configured to send email per event? When you edit the alert from Alerts dashboard, in the 2nd page, does it say "per  event" under Action options section?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 18:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248261#M74071</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-23T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248262#M74072</link>
      <description>&lt;P&gt;It is, yes.  It worked prior when I did not include hosts in the search.  However, the customer would like to only report on a number of hosts and not all.  &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248262#M74072</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-23T19:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248263#M74073</link>
      <description>&lt;P&gt;So before you added host name in the search, you're getting 25 emails, one for each host? I'm assuming that's what you want now, 10 emails, one for each host?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248263#M74073</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-23T19:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248264#M74074</link>
      <description>&lt;P&gt;That is correct.  Now, we only want to alert on 10 of the 25 hosts.  One email for each host as it occurs.  In practice, we want to be alerted whenever someone logs into the host via a specific method.  &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:17:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248264#M74074</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-23T19:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248265#M74075</link>
      <description>&lt;P&gt;If the alert was sending one email per host earlier, it should be doing the same, after explicitly selecting fewer hosts. Has anything else changed in the alert? Is the query that you posted the full query? If not, then could you post full alert-search what was before and what you changed into?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248265#M74075</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-23T19:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248266#M74076</link>
      <description>&lt;P&gt;Sorry, let me clarify:&lt;BR /&gt;
The search originally only looked at index and sourcetype; there was no hosts listed in the search.  So anytime we saw events under that sourcetype it would alert.  &lt;/P&gt;

&lt;P&gt;Since then, the customer decided that they want to be able to search on all the hosts still, but only alert on higher value machines.  &lt;/P&gt;

&lt;P&gt;So, the original (working) search was:&lt;BR /&gt;
index = abc_wineventlogs &lt;BR /&gt;
sourcetype = abc_wineventlog_sec&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:34:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248266#M74076</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2020-09-29T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248267#M74077</link>
      <description>&lt;P&gt;I'm stumped. The changes that you made should not be causing the "per event" alerting at all.  Is this a real-time alert? &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248267#M74077</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-23T19:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248268#M74078</link>
      <description>&lt;P&gt;Me too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  This is a scheduled search (cron 5 minutes)&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 20:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248268#M74078</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-23T20:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248269#M74079</link>
      <description>&lt;P&gt;Could you try one thing? Create a new alert search altogether with this new search (with host) and see if that works. Disable the current one though to avoid duplicate alerts.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 20:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248269#M74079</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-23T20:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248270#M74080</link>
      <description>&lt;P&gt;I will give that a shot once I hear back from the customer on testing the |dedup host.  Updates to follow.  Thank you for all your time and suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 20:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248270#M74080</guid>
      <dc:creator>CaptainHook</dc:creator>
      <dc:date>2017-01-23T20:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248271#M74081</link>
      <description>&lt;P&gt;This sounds like a classic use of the Alert mode features. Perhaps you have it set up correctly but didn't put the Host in the throttling fields? You'll want to put the unique item in that field so it will alert once per result but then ignore (throttle) if it sees the same one again within the time frame you listed.&lt;/P&gt;

&lt;P&gt;Also, what is the full search string? For sanity, we should make sure your search string isn't undermining your alerting.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2353i3E551435C616BC50/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248271#M74081</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-01-25T13:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to alert once per result for multiple hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248272#M74082</link>
      <description>&lt;P&gt;Crappers. I just noticed this details after I posted my answer. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-alert-once-per-result-for-multiple/m-p/248272#M74082</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-01-25T13:31:10Z</dc:date>
    </item>
  </channel>
</rss>

