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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...