Alerting

Running an alert script locally when using Splunk Cloud

ichard
Engager

I'd like to run a script based on a pattern match in a particular logfile. Ordinarily I'd do this with an alert, but I can't do that because—

  • I'm using Splunk Cloud so I can't easily run a script from an alert as I would if we were hosting everything ourselves; and
  • the script will need to call services that are only present on our corporate network.

Is there any way of getting the forwarder to run the script when a particular pattern matches? Or is there another approach that I could try?

0 Karma

ryanoconnor
Builder

One approach you might be able to try is to request access to the REST API for your Cloud Search Heads. Then you could run searches remotely and make those search results a conditional part of your script.

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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