Getting Data In

Splunk 8.2 default Python3 not workin with File/Directory Information Input

markturner14
Explorer

Hi @Anonymous  / @Anonymous 

I have recently started using your "File/Directory Information Input" app.

I believe that it does not work with splunk python3 - which is the default version in splunk8.  Is this something that you still work on and maintain?

I have been able to get it working if I set splunk system/server.conf to "python.version = python2".  It would be better though if I could set this within the app and not splunk system wide.

In general it has been working for me when I use within a UF that has the latest version of python2,  so 2.7.5-89 works in Linux.

It does have some issues around the 'file_filter` when filtering, this again seemed to work closer to as expected for me when python2 was patched to latest minor release version of 2.7.5-89

But when it works it is great and does exactly what I want, so thank you very much

regards

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Have you tried setting python.version = python2 in the [install] stanza of the app's local/app.conf file?

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Have you tried setting python.version = python2 in the [install] stanza of the app's local/app.conf file?

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

markturner14
Explorer

Many thanks @richgalloway,  yes that works.

ta

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!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...