Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: python.version in generated conf files #1597

Open
pmeyerson opened this issue Feb 21, 2025 · 1 comment
Open

Feature request: python.version in generated conf files #1597

pmeyerson opened this issue Feb 21, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@pmeyerson
Copy link

Description

I would like to control value of python.version for all generated conf files in my app.
If I only puy python.verion = xxx in a stanza, ucc-gen build does not generate the rest of the stanza keys needed.

Would like to use this across a few different conf files - modular inputs, custom alert action, custom search commands, etc.

Any ideas?
Currently looks like it just uses the default of python3, no matter which version of python i have installed in the local virtualenv.

INFO: ucc-gen version 5.58.1 is used
INFO: Python binary name to use: python3
INFO: Python Version: Python 3.9.21

generated alert_actions.conf:

[stanza]
python.version = python3

Not breaking, I have a workaround with additional packaging step.
But seems like this will continue to be useful as splunk occasionally updates version of python shipped.
THX!

@pmeyerson pmeyerson added enhancement New feature or request triage Pending triage from maintainers labels Feb 21, 2025
@artemrys
Copy link
Member

thanks @pmeyerson for reaching out!

the values for python.version are predefined -

python.version = [default|python|python2|python3|python3.7|python3.9|latest]

(from https://docs.splunk.com/Documentation/Splunk/9.4.0/Admin/Inputsconf)

do you want us to expose all those values from the list?

@artemrys artemrys removed the triage Pending triage from maintainers label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants