Reporting

Custom Python Script Not Executing

KP2018
New Member

I have created a python script for reading log data from a custom application. The script is copied in below folder
$SPLUNK_HOME\etc\apps\search\bin\splunk_script.py

The configuration is done using the Data Inputs - Local Inputs - > Scripts menu to execute the script every 5 seconds
The script reads the . log file and returns text in CSV format
However the script is not executing.

Pls share the steps to configure a python script execution using the scripts option in data inputs. The results returned by the python scripts should be visible using the Search & Reporting menu in Splunk

0 Karma

micahkemp
Champion

Try running the script with the command:

splunk cmd python etc\apps\search\bin\splunk_script.py

This will run it with the same environment the scripted input would use, so it should help you identify potential permission or other issues.

0 Karma

msonawala
New Member

script is working with that command but not working when i am using input.conf

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