Splunk Dev

How can I pass information from python to my new custom view?

mshapirovp
Explorer

I am creating a custom view that pulls data out of a configuration file (right now databases from DB Connect configuration) and allows me to display a drop down, allowing the user to determine what database to pull information from for the app.

All the documentation on the SDK only shows using Python to create the django binding, but nothing really goes into how (if possible) you can pass additional information from the python to the javascript.

Is this at all possible?

Tags (2)
0 Karma

paramagurukarth
Builder

Below could help you in creating a Python HTTP End point...
http://wiki.splunk.com/Community:40GUIDevelopment
http://answers.splunk.com/answers/150370/python-end-point-configured-in-web-conf-is-not-working.html

You can implement DB/configuration reading part in the Python and return it

And Make a ajax call to populate the dropdown values

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...