Dashboards & Visualizations

App Development: on startup of an app i'm building, how do I set global variable that can be used in dashboards?

dmoulais
New Member

This may be a beginners question ... not sure ... but I have looked around and performed a fair bit of reading ...

I'm starting w/ basic app development.

When my app starts up — or on change later — I want the user to provide a hostname to my app (e.g. hostname). That hostname is then referenced in dashboards throughout the app (e.g. via $hostname$) to ensure the relevant searches etc are using that hostname. I tried using setup.xml and then using the $ notation to access the variable ... but that did not work. I suspect I'm going in the wrong direction. Still investigating but figured I'd ask the experts 🙂

0 Karma

christoffertoft
Communicator

Define "global" ? Do you want the value to be saved between reboots/visits to other dashboards/apps etc? or just for the duration of the current view?

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 ...