<?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 How to chain custom alert actions? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-chain-custom-alert-actions/m-p/491489#M8736</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am looking to chain a couple of custom alert actions.  A use case is monitoring a node that is down.&lt;BR /&gt;&lt;BR /&gt;
When down, alert action #1 is triggered and pings the node as verification.&lt;BR /&gt;&lt;BR /&gt;
If the node is indeed down, then alert action  #2 is triggered that will cut a ticket.&lt;BR /&gt;&lt;BR /&gt;
Action #2 is already existing so I'm just looking to re-use it.  &lt;/P&gt;

&lt;P&gt;I'm thinking of calling the 2nd alert action using REST (assuming there's an endpoint to fire  an alert).&lt;BR /&gt;&lt;BR /&gt;
I appreciate any info.&lt;BR /&gt;&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 18:33:55 GMT</pubDate>
    <dc:creator>emc2family</dc:creator>
    <dc:date>2019-09-30T18:33:55Z</dc:date>
    <item>
      <title>How to chain custom alert actions?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-chain-custom-alert-actions/m-p/491489#M8736</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am looking to chain a couple of custom alert actions.  A use case is monitoring a node that is down.&lt;BR /&gt;&lt;BR /&gt;
When down, alert action #1 is triggered and pings the node as verification.&lt;BR /&gt;&lt;BR /&gt;
If the node is indeed down, then alert action  #2 is triggered that will cut a ticket.&lt;BR /&gt;&lt;BR /&gt;
Action #2 is already existing so I'm just looking to re-use it.  &lt;/P&gt;

&lt;P&gt;I'm thinking of calling the 2nd alert action using REST (assuming there's an endpoint to fire  an alert).&lt;BR /&gt;&lt;BR /&gt;
I appreciate any info.&lt;BR /&gt;&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 18:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-chain-custom-alert-actions/m-p/491489#M8736</guid>
      <dc:creator>emc2family</dc:creator>
      <dc:date>2019-09-30T18:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to chain custom alert actions?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-chain-custom-alert-actions/m-p/491490#M8737</link>
      <description>&lt;P&gt;Within splunk natively that is not possible. alert actions attached to a search are triggered in a bucket of asynchronous actions with no interdependence.&lt;/P&gt;

&lt;P&gt;Writing your own chaining might be possible but complicated.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 18:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-chain-custom-alert-actions/m-p/491490#M8737</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2019-09-30T18:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to chain custom alert actions?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-chain-custom-alert-actions/m-p/491491#M8738</link>
      <description>&lt;P&gt;This is exactly the use case for Phantom and using Phantom in the non-security role. Send the alert to Phantom and handle the rest of the logic there.&lt;/P&gt;

&lt;P&gt;However, I have to disagree with the assertion above. there are many ways to address this in Splunk directly. To do this you need to create a state table of some sort in Splunk and look for results.&lt;/P&gt;

&lt;P&gt;There are many ways you can do this directly from an alert. Some examples are...&lt;BR /&gt;
- Update a lookup table to run in your search &lt;BR /&gt;
- Create an entry in the triggered alert index and monitor that.&lt;BR /&gt;
- Add a Splunk index entry directly and monitor that&lt;/P&gt;

&lt;P&gt;If we use an index, the process could look like this...&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Write a Splunk Search that results in triggering an alert action, well call it &lt;STRONG&gt;"Node Suspected Down"&lt;/STRONG&gt; which tests the node to see if it responds. &lt;/LI&gt;
&lt;LI&gt;When the test for &lt;STRONG&gt;"Node Suspected Down"&lt;/STRONG&gt; completes, write a record to &lt;STRONG&gt;"SplunkDex"&lt;/STRONG&gt; with condition &lt;STRONG&gt;"Node Confirmed Up"&lt;/STRONG&gt; or &lt;STRONG&gt;"Node Confirmed Down"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In the same alert also write an event to a Splunk index. Let's call this index &lt;STRONG&gt;"SplunkDex"&lt;/STRONG&gt; and add an event with the condition of &lt;STRONG&gt;"Node Suspected Down"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;On a timed basis, execute a search looking for active records in &lt;STRONG&gt;"SplunkDex"&lt;/STRONG&gt; that haven’t been closed. That is their most current state is &lt;STRONG&gt;"Node Confirmed Down"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;If the condition is &lt;STRONG&gt;"Node Confirmed Down"&lt;/STRONG&gt; set Alert and &lt;STRONG&gt;"Open a Ticket"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In the same alert also write an event to  &lt;STRONG&gt;"SplunkDex"&lt;/STRONG&gt; setting the condition to &lt;STRONG&gt;"Node Ticket Created"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 01 Oct 2019 19:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-chain-custom-alert-actions/m-p/491491#M8738</guid>
      <dc:creator>Claw</dc:creator>
      <dc:date>2019-10-01T19:21:10Z</dc:date>
    </item>
  </channel>
</rss>

