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 Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...