Alerting

Is there a best way sent alert content to a API interface of other system

bestSplunker
Contributor

I have a SOC (Security Operation Center) that has an API to receive alert content from splunk(splunk version 6.4.4).When the alert is triggered, I hope Splunk can send the alert contents to SOC API. So what way should I send the alert type to SOC API?
The fields and contents of each alert are different. In addition, it can be formatted as JSON?
Should I use the Run a script action? Is there a best way sent alert content to SOC API ?

Tags (1)
0 Karma
1 Solution

pradeepkumarg
Influencer

Yes, you can use webhook and Specify an URL to send JSON payload via HTTP POST. Refer below documentation.

http://docs.splunk.com/Documentation/Splunk/7.1.1/Alert/Webhooks

View solution in original post

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

Run a script is a deprecated feature, though I don't believe that it is in version 6.4.4. I would suggest doing a future-proof way of handling this, though I'm not sure if version 6.4.4 has an alternative (it has been a while since I ran 6.4, but I believe that this functionality will go back to 6.3). In recent releases you can create an custom alert action and send any of the applicable data from the search to the API that you are using. It won't have to be a JSON string through a REST API if your API doesn't handle that. You can program any type of interface that you need. The custom alert action also has many UI advantages over the Run a script action. Here is some documentation that might prove helpful to you:

http://docs.splunk.com/Documentation/Splunk/6.4.4/AdvancedDev/ModAlertsIntro

pradeepkumarg
Influencer

Yes, you can use webhook and Specify an URL to send JSON payload via HTTP POST. Refer below documentation.

http://docs.splunk.com/Documentation/Splunk/7.1.1/Alert/Webhooks

0 Karma

bestSplunker
Contributor

@gpradeepkumarreddy ok, So My SOC system needs access result_link of json payload, then can get the alert content

0 Karma

pradeepkumarg
Influencer

This is the other way around, Splunk posts the response to the URL you specify.

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...