<?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 search the names of triggered alerts, their trigger time, and the events that triggered them? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205681#M59812</link>
    <description>&lt;P&gt;Hi MuS,&lt;BR /&gt;
the query itself not returning means i is not giving any  result:&lt;/P&gt;

&lt;P&gt;index=_audit action="alert_fired" &lt;BR /&gt;
 | rename ss_name AS title &lt;BR /&gt;
 | join title [ | rest /services/saved/searches | table title, alert_threshold ] &lt;BR /&gt;
 | timechart values(alert_threshold) AS alert_threshold count by title&lt;/P&gt;

&lt;P&gt;though I can get the desired output by this:&lt;BR /&gt;
| rest /servicesNS/-/-/saved/searches splunk_server=local | search disabled=0 actions=* is_scheduled=1&lt;/P&gt;

&lt;P&gt;so my request is simple I need to pull a report OR data where how many times an alert was triggered during a given time period, when it was triggered and whom the email was sent.&lt;/P&gt;

&lt;P&gt;I do have power user access on splunk but not an admin level.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:04:29 GMT</pubDate>
    <dc:creator>iqbalintouch</dc:creator>
    <dc:date>2020-09-29T16:04:29Z</dc:date>
    <item>
      <title>How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205674#M59805</link>
      <description>&lt;P&gt;Hi guys, &lt;/P&gt;

&lt;P&gt;I have a problem with the triggered alerts and I really need your help!&lt;BR /&gt;
Now, I have some alerts working great in my Splunk. To count the number of the alerts triggered in a period of time, I made a report with the search string like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="alert_fired" | timechart count by ss_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From this search string, I get the time and name of the triggered alerts as below:&lt;BR /&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/629i5C3891638457C90D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But I also want to know the original events which triggered these alerts. All I want is a table with 3 columns. Column 1 shows the trigger time of the alerts, Column 2 shows the names of the triggered alerts, and Column 3 shows the events which triggered the alerts. How can I do that?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2015 04:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205674#M59805</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-06T04:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205675#M59806</link>
      <description>&lt;P&gt;Hi LuiesCui,&lt;/P&gt;

&lt;P&gt;I must admit, this makes a really good use case for &lt;CODE&gt;join&lt;/CODE&gt; since the alert threshold is hold in the &lt;CODE&gt;savedsearch.conf&lt;/CODE&gt; and is accessible over the REST endpoint &lt;CODE&gt;/services/saved/searches&lt;/CODE&gt;. &lt;BR /&gt;
You will first need to get the &lt;CODE&gt;alerts_threshold&lt;/CODE&gt; from REST and join it with the triggered alerts by the &lt;CODE&gt;title&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="alert_fired" 
| rename ss_name AS title 
| join title [ | rest /services/saved/searches | table title, alert_threshold ] 
| timechart values(alert_threshold) AS alert_threshold count by title
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2015 23:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205675#M59806</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-09-06T23:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205676#M59807</link>
      <description>&lt;P&gt;Hi, thank you for your reply! I kind of worked this out but got a new problem. Could you help me with this please? Thank you again.   &lt;A href="http://answers.splunk.com/answers/305369/why-the-results-from-triggered-alert-is-different.html"&gt;http://answers.splunk.com/answers/305369/why-the-results-from-triggered-alert-is-different.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2015 10:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205676#M59807</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-07T10:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205677#M59808</link>
      <description>&lt;P&gt;Hi MuS,&lt;/P&gt;

&lt;P&gt;I have same issue and looking for resolution. I followed the same query but it didn't work for me. Can you please help me out.&lt;BR /&gt;
FYI: I am using enterprise splunk, version 6.3.2&lt;BR /&gt;
I was able to get the list of all the enabled alert from here: | rest /servicesNS/-/-/saved/searches&lt;/P&gt;

&lt;P&gt;But I need to get the details of how many times the alert was triggered in particular time duration, what was the alert and what time(when) ?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 11:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205677#M59808</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2017-09-26T11:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205678#M59809</link>
      <description>&lt;P&gt;I will check that we I have access to an instance that has alerts enabled. Just one thing for now, rest calls are ignoring time but I'm sure there is some information available to see when an alert was triggered. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 01:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205678#M59809</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-09-28T01:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205679#M59810</link>
      <description>&lt;P&gt;Hi MuS ,&lt;/P&gt;

&lt;P&gt;Yes, I am quite sure there must be a place where we capture the details of when the alert crossed the threshold value and an email was sent out. Using that value we can pull the data when this alert was triggered, how many times (let's say how many times in last 15 days) and whom the email notification was sent.&lt;/P&gt;

&lt;P&gt;I use below query for all the enabled alerts:&lt;BR /&gt;
| rest /servicesNS/-/-/saved/searches splunk_server=local | search disabled=0 actions=* is_scheduled=1 &lt;/P&gt;

&lt;P&gt;so using the above query can you please help me out here?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205679#M59810</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2020-09-29T16:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205680#M59811</link>
      <description>&lt;P&gt;Okay, can you please explain what is not working for you? You need to have the admin role assigned to use the search posted in the original answer.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 19:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205680#M59811</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-10-02T19:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205681#M59812</link>
      <description>&lt;P&gt;Hi MuS,&lt;BR /&gt;
the query itself not returning means i is not giving any  result:&lt;/P&gt;

&lt;P&gt;index=_audit action="alert_fired" &lt;BR /&gt;
 | rename ss_name AS title &lt;BR /&gt;
 | join title [ | rest /services/saved/searches | table title, alert_threshold ] &lt;BR /&gt;
 | timechart values(alert_threshold) AS alert_threshold count by title&lt;/P&gt;

&lt;P&gt;though I can get the desired output by this:&lt;BR /&gt;
| rest /servicesNS/-/-/saved/searches splunk_server=local | search disabled=0 actions=* is_scheduled=1&lt;/P&gt;

&lt;P&gt;so my request is simple I need to pull a report OR data where how many times an alert was triggered during a given time period, when it was triggered and whom the email was sent.&lt;/P&gt;

&lt;P&gt;I do have power user access on splunk but not an admin level.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205681#M59812</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2020-09-29T16:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205682#M59813</link>
      <description>&lt;P&gt;Well your request is indeed very simple, though there is not much I or anyone can do to help. Since you have the &lt;EM&gt;power user&lt;/EM&gt; role and not &lt;EM&gt;admin&lt;/EM&gt; you cannot access the index &lt;CODE&gt;_audit&lt;/CODE&gt; and therefore will not be able to get the search working.&lt;/P&gt;

&lt;P&gt;Ask your friendly Splunk admin to create a report for you or to schedule a saved search which feeds into a summary index so you can run the reports on the summary index.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 18:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205682#M59813</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-10-03T18:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the names of triggered alerts, their trigger time, and the events that triggered them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205683#M59814</link>
      <description>&lt;P&gt;Hi MuS,&lt;/P&gt;

&lt;P&gt;Got it, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 04:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-names-of-triggered-alerts-their-trigger-time/m-p/205683#M59814</guid>
      <dc:creator>iqbalintouch</dc:creator>
      <dc:date>2017-10-04T04:05:23Z</dc:date>
    </item>
  </channel>
</rss>

