Alerting

How to troubleshoot why my alert action Python script does not run?

yAlff
Path Finder

Hi,

I just created a script, which will reload a Splunk Add-On. Unfortunately, my savedsearch cannot run the script.
Its location is /bin/scripts/restart_amqp.py, so it's a python script. I also introduced some logging to see when it is started. If I run it with splunk cmd python scripts/restart_amqp.py it works fine and does what it should do.

My Splunk is running on Windows server 2008.

Thanks.

0 Karma

FritzWittwer_ol
Contributor

Did you check the windows event log for errors? There are some special things to consider if you try to run scripted inputs from a universal forwarder on windows, this my perhaps apply here as well. I would also check the logs from Splunk in ../var/log/splunk

0 Karma

pradeepkumarg
Influencer

Do you know if your saved search meets the condition to trigger the script? You can test this by selecting the option send email, so that you know the condition has been met.

0 Karma

yAlff
Path Finder

Yes, this is checked and working

0 Karma
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 ...