<?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 pull a report of all enabled alerts with the recipient list of To and CC? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318701#M5697</link>
    <description>&lt;P&gt;try this one. it will include the recipients of the alert.&lt;/P&gt;

&lt;P&gt;|rest/servicesNS/-/-/saved/searches | search alert.track=1 | fields title description search disabled triggered_alert_count actions action.script.filename action.email.to alert.severity cron_schedule&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:53:48 GMT</pubDate>
    <dc:creator>alejandrinod</dc:creator>
    <dc:date>2020-09-29T22:53:48Z</dc:date>
    <item>
      <title>How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318693#M5689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am a part of application support team  and using Splunk as our primary tool for monitoring purpose..&lt;/P&gt;

&lt;P&gt;Can anyone please help me to pull a report in Splunk to get the details of all the alerts which are enabled with "To" and "CC" recipient list. I just need the alert details not the saved searches and reports, checked this link but it is not helpful.&lt;/P&gt;

&lt;P&gt;Here are the details of Splunk version which I am using:&lt;/P&gt;

&lt;P&gt;Splunk Version: 6.3.2&lt;BR /&gt;
Splunk Build: aaff59bb082c&lt;BR /&gt;
Current App: Search &amp;amp; Reporting                           // (we have other apps as well)&lt;BR /&gt;
App Version: 6.3.2&lt;/P&gt;

&lt;P&gt;some screenshot would be most helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 15:24:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318693#M5689</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2017-05-25T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318694#M5690</link>
      <description>&lt;P&gt;Here try this search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/saved/searches | search title=*| rename title AS "Title", description AS "Description", alert_threshold AS "Threshold", cron_schedule AS "Cron Schedule", search AS "Search", action.email.to AS "Email" ,alert_comparator AS "Comparison", dispatch.earliest_time  AS "frequency", alert.severity AS  "SEV" ,author AS "Author" ,disabled AS "Disabled-True"| eval Severity=case(SEV == "5", "Critical-5", SEV == "4", "High-4",SEV == "3", "Warning-3",SEV == "2", "Low-2",SEV == "1", "Info-1") | table Title, Description, Threshold, Comparison, "Cron Schedule", frequency, Severity,Search, Email,Author,Disabled-True
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 16:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318694#M5690</guid>
      <dc:creator>maniishpawar</dc:creator>
      <dc:date>2017-05-25T16:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318695#M5691</link>
      <description>&lt;P&gt;Hi @maniishpawar,&lt;/P&gt;

&lt;P&gt;thank you for your response. The query is not giving me the desired output. Actually in our Splunk tool, we have many apps (not able to provide screenshot). So basically I want to pull a report for all the alerts which are enabled under apps xyz and the recipient list of those alerts with below fields:&lt;/P&gt;

&lt;P&gt;Title   frequency   Severity    Email&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 03:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318695#M5691</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2017-05-26T03:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318696#M5692</link>
      <description>&lt;P&gt;I have used below query to pull all the active/enable alerts which are being sent to our DL, but didn't get the result:&lt;/P&gt;

&lt;P&gt;| rest /services/saved/searches action.email.to=("&lt;A href="mailto:page.XYZ@xyz.com"&gt;page.XYZ@xyz.com&lt;/A&gt;" OR "&lt;A href="mailto:ABC@xyz.com"&gt;ABC@xyz.com&lt;/A&gt;") | search title=*| rename title AS "Title", action.email.to AS "Email" , dispatch.earliest_time  AS "frequency", alert.severity AS  "SEV" | eval Severity=case(SEV == "5", "Critical-5", SEV == "4", "High-4",SEV == "3", "Warning-3",SEV == "2", "Low-2",SEV == "1", "Info-1") | table Title, frequency, Severity, Email&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 04:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318696#M5692</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2017-05-26T04:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318697#M5693</link>
      <description>&lt;P&gt;because this &lt;CODE&gt;| rest /services/saved/searches action.email.to=("page.XYZ@xyz.com" OR "ABC@xyz.com")&lt;/CODE&gt;  will not work. Also use a different rest endpoint to get all saved searches. The search should be more like : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/saved/searches | search action.email.to="page.XYZ@xyz.com" OR action.email.to="ABC@xyz.com" title=*| rename title AS "Title", action.email.to AS "Email" , dispatch.earliest_time AS "frequency", alert.severity AS "SEV" | eval Severity=case(SEV == "5", "Critical-5", SEV == "4", "High-4",SEV == "3", "Warning-3",SEV == "2", "Low-2",SEV == "1", "Info-1") | table Title, frequency, Severity, Email
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 04:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318697#M5693</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-05-26T04:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318698#M5694</link>
      <description>&lt;P&gt;Hi @MuS,&lt;/P&gt;

&lt;P&gt;no help &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; nothing is coming up..please help me if you can show me the results in a screenshot, would be very thankful to you.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 05:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318698#M5694</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2017-05-26T05:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318699#M5695</link>
      <description>&lt;P&gt;Okay just run this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/saved/searches
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And work your way from there to get the result you want. &lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 05:47:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318699#M5695</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-05-26T05:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318700#M5696</link>
      <description>&lt;P&gt;Thanks a lot @MuS, I got the details. Appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 10:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318700#M5696</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2017-05-26T10:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318701#M5697</link>
      <description>&lt;P&gt;try this one. it will include the recipients of the alert.&lt;/P&gt;

&lt;P&gt;|rest/servicesNS/-/-/saved/searches | search alert.track=1 | fields title description search disabled triggered_alert_count actions action.script.filename action.email.to alert.severity cron_schedule&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318701#M5697</guid>
      <dc:creator>alejandrinod</dc:creator>
      <dc:date>2020-09-29T22:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318702#M5698</link>
      <description>&lt;P&gt;I am looking for the same thing, but I have found that your search doesn't find any alerts created/running in ES. How can I get ES alerts that are running?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 16:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318702#M5698</guid>
      <dc:creator>JRAnderson</dc:creator>
      <dc:date>2020-02-26T16:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318703#M5699</link>
      <description>&lt;P&gt;Do ES Alerts have their own Alert Action?  We're not an ES Customer, so I can't check, but if you take a look at the results of this query, specifically the "Actions" field, I think you'll find what you need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| REST /servicesNS/-/-/saved/searches 
| search disabled=0 AND (actions=** OR actions=** OR ... )
| table title description cron_schedule actions action.email.to action.email.cc *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once you identify the correct Action for ES alerts, you can add that modify the actions=** filters in the second line, adding the action type between the asterisk to filter for specific action types.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 16:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318703#M5699</guid>
      <dc:creator>dijikul</dc:creator>
      <dc:date>2020-02-26T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318704#M5700</link>
      <description>&lt;P&gt;Thanks that provides all of the saved searches including ES.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 17:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/318704#M5700</guid>
      <dc:creator>JRAnderson</dc:creator>
      <dc:date>2020-02-26T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull a report of all enabled alerts with the recipient list of To and CC?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/545611#M10360</link>
      <description>&lt;P&gt;thank you for this.&lt;BR /&gt;&lt;BR /&gt;I tried, did return alerts, but not all.&lt;BR /&gt;Some alerts (of a whole app) are missing - and I cannot find why.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;/P&gt;&lt;P&gt;Altin&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-pull-a-report-of-all-enabled-alerts-with-the-recipient/m-p/545611#M10360</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2021-03-26T14:41:55Z</dc:date>
    </item>
  </channel>
</rss>

