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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...