Splunk Search

Python SDK real time search results in web page

kmattern
Builder

Is it possible to display results in a web page using a python script? It is easy to dispatch a search and display the results in web pages using python scripts but I can't get a handle on how to do it with a real time search. I've looked at the examples in the SDK but they really aren't very helpful, that includes stail.py.

0 Karma

paramagurukarth
Builder

You can make a custom Python end point by a simple configuration in web.conf and a python file...
How to create python end point ? Please refer --> http://wiki.splunk.com/Community:40GUIDevelopment
* In your python implementation you can execute your search, create a custom HTML out of the result and return it to your page
For real time :
You may have to post ajax request in some interval and update your page...

0 Karma
Get Updates on the Splunk Community!

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...