Splunk Search

How to troubleshoot python scripts

beaunewcomb
Communicator

I'm trying to get the Pulse cloudwatch app to work using boto and dateutil, but splunkd.log shows this:

04-09-2013 22:56:32.711 +0000 INFO ExecProcessor - Ran script: python /opt/splunk/etc/apps/pulse_for_aws_cloudwatch-master/bin/ELB_Metrics.py us-east-1 300, took 146.2 milliseconds to run, 0 bytes read, exited with code 1

So the python script is erroring out but I don't know why. How do I run it under the same environment Splunk does so I can find out exactly what's going on?

Tags (2)
0 Karma
1 Solution

sbrant_splunk
Splunk Employee
Splunk Employee

Try:
$SPLUNK_HOME/bin/splunk cmd /

View solution in original post

0 Karma

sbrant_splunk
Splunk Employee
Splunk Employee

Try:
$SPLUNK_HOME/bin/splunk cmd /

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