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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...