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
Get Updates on the Splunk Community!

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...

From Alert to Resolution: How Splunk Observability Helps SREs Navigate Critical ...

It's 3:17 AM, and your phone buzzes with an urgent alert. Wire transfer processing times have spiked, and ...