All Apps and Add-ons

Why is App Inspect failing in inputs.conf.spec?

panguy
Contributor

I am currently getting this failure when running my add-on through appinspect:

check_inputs_conf_spec_stanzas_has_python_version_property

My README/inputs.conf.spec

 

[autofocus_export://<name>]
python.version = python3
label = 
interval =

 

AppInspect Report:

 

Modular input "autofocus_export" is defined in README/inputs.conf.spec, python.version should be explicitly set to python3 under each stanza. File: README/inputs.conf.spec Line Number: 1

 

Current documentation for inputs.conf.spec doesn't mention using python.version. Any help would be appreciate

Labels (3)
0 Karma
1 Solution

thambisetty
Super Champion

5D54675B-B95B-427D-9701-4F2BC9FEC86D.png

After Splunk version 8, Splunk is expecting python3 for any TA/app development.

if you have already developed your TA using python 3 just use 

python.version= python3 

in your inputs.conf

https://docs.splunk.com/Documentation/Splunk/8.0.5/Admin/Inputsconf

 

————————————
If this helps, give a like below.

View solution in original post

thambisetty
Super Champion

5D54675B-B95B-427D-9701-4F2BC9FEC86D.png

After Splunk version 8, Splunk is expecting python3 for any TA/app development.

if you have already developed your TA using python 3 just use 

python.version= python3 

in your inputs.conf

https://docs.splunk.com/Documentation/Splunk/8.0.5/Admin/Inputsconf

 

————————————
If this helps, give a like below.

Georges1
Engager

I encounter the same issue and unfortunately I don't understand the solution.

My App leverages an `inputs.conf.spec` to expose a modular input , hence no `inputs.conf` is defined. How/where can I set the requested `python.version= python3 ` if no inputs.conf file exists ?

0 Karma

thambisetty
Super Champion

@Georges1 

If you have inputs.conf.spec then there should be inputs.conf under default directory.

if your app doesn’t have default inputs.conf then also you can just create same stanza name like inputs.conf.spec in default inputs.conf and specify python version.

————————————
If this helps, give a like below.

srajarat2
Path Finder

What about the TA that was developed earlier which supports both 8.1 and < 8.1?

0 Karma

panguy
Contributor

Thank you. The App Inspect error is misleading. It makes it seem like we need to add it into inputs.conf.spec file.

I removed it from inputs.conf.spec and added it to only inputs.conf and it now passes.

0 Karma

thambisetty
Super Champion

great. 

————————————
If this helps, give a like below.
0 Karma