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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...