All Apps and Add-ons

Splunk Add-On Builder: Accessing global variables in validate_input()

gavins_k1
Path Finder

Hi Splunkers,

How does one access global variables within validate_input() when writing a TA in the Add-On Builder?

Getting input variables from the input form is done via definition.parameters.get(), but I need to use some of the global variables to validate the input variables.

I have tried using definition.parameters.get() and helper.get_global_setting() but both do not return a value when trying to access the global variables.

Does anyone have any ideas about how to use global variables when validating the input form?

Thanks for any help anyone could provide!

Tags (1)

Jayaraman
Explorer
Any solution for this?
0 Karma

Patrick_Peeters
Splunk Employee
Splunk Employee

I'll check internally what the recommended way of doing this is.

0 Karma

Patrick_Peeters
Splunk Employee
Splunk Employee

Did you ever figure this out? Just ran into the same thing with AoB 3.0.1.

0 Karma

gavins_k1
Path Finder

Unfortunately, I have not found or come up with a solution for this yet.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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