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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...