All Apps and Add-ons

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

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

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

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

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

Champion

great. 

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