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!

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...