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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...