Deployment Architecture

How to retrieve information from a custom config file created from setup?

yanlajeunesse
Explorer

Hello,

What i'm trying to achieve is : a setup page where the users can enter different information that my app's different dashboards will use. Ideally, I would even like to create email alerts and the user could set his email address from the setup, but that seems more advanced.

I have read multiple docs about how to create such a setup page. I've used the example from the "Developer Guidance - Setup View Example For Splunk" app, and it works fine as in i can easily write my own configuration file with stanza and fields of my choosing.

What I dont know though, is how to access these stored information from my splunk app itself, say, from a search. Is it stored as tokens? I'm starting to consider tweaking my setup to just write a .csv file instead and use it as a lookup, but it feels absolutely hackish.

Any hints to point me towards the light would be greatly appreciated 🙂

Thank you!

Tags (2)
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...