Skip to content

Conversation

@nterl0k
Copy link

@nterl0k nterl0k commented Aug 29, 2022

Description

splunk_skd.py doesn't handle errors related to the "generate_config" function or log well, added a few tweaks to assist with the and troubleshooting.

Motivation and Context

Splunk Environments with multiple credential stores / TA-s using the credential store will break the "generate_config" function. Loop required the addition of a "continue" statement to work using multiple entries.

How Has This Been Tested?

This correction has been running in a production environment for ~ 8 months with no issues.

Screenshots (if appropriate)

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • [X ] I have added tests to cover my changes if appropriate.
  • [X ] All new and existing tests passed.

Added some error checking and a continue statement to generate_configs function. In the event that the Splunk server has multiple credential stores, this won't cause the script to break. Added minor debug logging.
@welcome-to-palo-alto-networks

🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant