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!

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...