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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...