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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...