Alerting

Can you add your own custom alert action?

Lowell
Super Champion

There are a number of existing alerting conditions provided out of the box, such as populate_lookup, rss, email, and so on. I noticed that these are all defined in alert_actions.conf, so that begs the question: Is it possible to simply add your own custom alerting action by adding an appropriate config entry?

It looks like you would have to write your own custom search command to correspond to a new alert action, but that's not too difficult.

Does Splunk intended this as a feature, or is is merely to be used internally for Splunk's own stuff?

What are the permissions considerations? Is it basically who ever can execute the associated search command can also use the alerting action that calls it?

Lowell
Super Champion

Yes, you can create your own custom alert action. I've published an app on splunk base, which can serve as an example:

http://www.splunkbase.com/apps/All/4.x/Add-On/app:RunSavedSearch+alert+action

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Maybe you could, but why would you? You can already pipe to a script or call a script based on an alert. You don't get any new UI or anything, just more files to do the same thing.

Lowell
Super Champion
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...