Splunk® Add-on Builder

Splunk Add-on Builder User Guide

This documentation does not apply to the most recent version of Splunk® Add-on Builder. For documentation on the most recent version, go to the latest release.

Troubleshooting

Lost configuration field values after migration to version 4.x

When configuration fields for Add-ons created using the Add-on Builder are encrypted in version 3.x and the are again accessed using Add-on Builder version 4.x, the value for that configuration field is presented as ***** instead of the actual value. This issue only occurs when the Add-on Builder is upgraded from version 3.x to 4.x.

Steps to reproduce

  1. In the Add-on Builder version 3.x, a modular input is created using python code that contains any field whose value will be stored in the .conf file after encryption.
  2. The field is saved to the .conf file with the values from the user interface.
  3. The Add-on Builder is upgraded to version 4.x
  4. When the saved field value is accessed, the value is fetched as **** instead of the actual value.

To mitigate the issue

Reconfigure the configurations after upgrading to add-on builder version 4.x.

Error message when importing an Add-on in the Add-on Builder

The following error is seen when importing the Add-on in the Add-on Builder: The addon project cannot be imported because a problem occurred while loading the metadata.

Conditions under which this issue may occur

An Add-on is created in Add-on Builder using the "VALIDATE & PACKAGE" option (which only downloads the installable .spl file) instead of the "EXPORT" option (which actually exports the project along with its metadata). The app project was deleted from the UI of Add-on builder and tried to import the .spl file for the same project.

To mitigate this issue

Re-create your add-on in the project using Add-on Builder.

'PROXY_TYPE_HTTP_NO_TUNNEL' message after upgrading from version 4.1.0 to version 4.1.1

When you try to create REST API inputs after upgrading from version 4.1.0 to version 4.1.1, the API error may be seen:

AttributeError: module 'socks' has no attribute 'PROXY_TYPE_HTTP_NO_TUNNEL'

To mitigate this issue

  1. Delete the socks.py files present under the locations:
    • $SPLUNK_HOME/etc/apps/<YOUR_ADDON>/bin/ta_<your_addon>/aob_py3/socks.py
    • $SPLUNK_HOME/etc/apps/splunk_app_addon-builder/bin/ta_generator/resources_lib/aob_py3/socks.py
  2. Create the input again.
Last modified on 05 November, 2022
Python helper functions   What's new

This documentation applies to the following versions of Splunk® Add-on Builder: 4.1.1, 4.1.2, 4.1.3


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters