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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...