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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...