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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...