Splunk Dev

What is the replacement for the deprecated Python call entity.setEntity?

Vidd
Explorer

I see in the list of deprecated features that entity.setEntity has been deprecated (some time ago).

What is the recommended alternative for storing the password securely when using a modular input and setup.xml screen?

0 Karma
1 Solution

bmacias84
Champion

@Vidd, The new method of storing password is the passwordstore which is detailed in How to work with users, roles, and storage passwords using the Splunk SDK for Python. A good example is of working with the passwordstore is the splunk-add-on-jira-alerts built by Splunk. While the example is for an alert it can easily be converted for a modular input. You will need to obtain the auth key inside your modular input which is a property available in self

Take a close look at splunk-add-on-jira-alerts/bin/jira_alerts_install_endpoint.py for the setup view and splunk-add-on-jira-alerts/bin/jira_helpers.py.

View solution in original post

bmacias84
Champion

@Vidd, The new method of storing password is the passwordstore which is detailed in How to work with users, roles, and storage passwords using the Splunk SDK for Python. A good example is of working with the passwordstore is the splunk-add-on-jira-alerts built by Splunk. While the example is for an alert it can easily be converted for a modular input. You will need to obtain the auth key inside your modular input which is a property available in self

Take a close look at splunk-add-on-jira-alerts/bin/jira_alerts_install_endpoint.py for the setup view and splunk-add-on-jira-alerts/bin/jira_helpers.py.

Vidd
Explorer

Thank you so much for the reference and example. Very much appreciated.

0 Karma

bmacias84
Champion

Also setup.xml in will be deprecated in the future, but no telling when.

Vidd
Explorer

Thanks for the tip!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...