All Apps and Add-ons

Issue while using multiple dropdown option in Splunk Add on builder using REST API option.

raunaka1
New Member

Hi Experts,

I am creating an addon in my local splunk using Splunk Add on builder with REST API option. I have created an input with some fields including one in which i want user to select multiple options out of the range of options i will be configuring in the addon. So i am trying to use multiple dropdown option available in addon builder but using that is not fetching the correct response. While with single dropdown option i am able to get the proper response. Is there any different method to pass the parameter value when using multiple dropdown option in add on builder app in splunk apart from ${param_name}.

Your help would be greatly appreciated. Thanks in Advance !

0 Karma

pmeyerson
Path Finder

Hi raunaka1,

I think you can do this to see how the data is being passed to your add on code:

1: set app log level in app setup, say debug.

in the validate_input(), add at the top:

    loglevel=helper.get_log_level()
    helper.set_log_level(loglevel)
    helper.log_debug("input received={}".format(str(definition.parameters))) # set log level as you wish

definition.parameters should be a dict with all your parameters, so you should see what is getting passed in.
If its a param you added manually after exporting from AOB, you'll need to add it in a bunch of places within your project code.

 

0 Karma

raunaka1
New Member

@richgalloway - Could you please help here ?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Sorry, I have no experience with AoB.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...