Splunk Search

Using diffent python version in external lookup

Marvin_Janzen
Observer

Hello,

I am trying to use a different python version for my external lookup. The global version is 3.7 and my custom one is 3.10

my /opt/splunk/bin contains both 3.7 and 3.10

 

In my transforms.conf i changed the python version:

[externallookup]

python.version = python3.10
 
However I am getting the following error:
Marvin_Janzen_0-1751457334078.png

 

When I use 

[externallookup]

python.version = python3.7
 
, it does not give the error. Also I am able to use the new python version, when I change the symlink from 3.7 to my 3.10 (for debugging)
 
But why doesnt it work when I set the python.version to pyhon.3.10?
 
Thanks in advance!
Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

python.version = python3.10 is not a valid setting.  Allowed values are default, python3, python3.7, or python3.9.  I don't know how you were able to add Python 3.10 to Splunk, but doing so does not change the validation of python.version settings.  I strongly recommend using only the versions of Python that ship with Splunk (3.7 or 3.9).

---
If this reply helps you, Karma would be appreciated.
0 Karma

Marvin_Janzen
Observer

Alright, thank you for your answer!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...