Splunk Dev

Format of Python.path file

dragut
New Member

In the search document p222, it is said"
you want to use the Python interpreter on your operating system instead of the Python interpreter that is included with the Splunk software.
1. Create the following two directories:
¨ /usr/bin/python
¨ $SPLUNK_HOME/bin/python
Create a .path file. The .path file must be stored in one of the bin
directories in your apps.
2.
In the commands.conf file, define your command by specifying the
filename and command.arg.1 attributes. For example:
[fizbin]
chunked = true
filename = python.path
command.arg.1 = fizbin.py"

So what is the format of the python.path file? I put
c:\ProgramData\Anaconda2\python.exe
in my python.path and the command get "External search command 'sample1' returned error code 1. "
Thanks for help.

0 Karma
Get Updates on the Splunk Community!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...