Splunk Search

Print the strings on Splunk web UI simultaneously while python file running in background

harshal_chakran
Builder

Hi,
I have a python file, whose output I am trying to show on splunk web interface. I have written some print statements in python file. When I run the solution, all the print statements are shown on screen in one go. I want the print statements to load on screen simultaneously one after another.
Please help me with this.

0 Karma

Lowell
Super Champion

You'll need to provide some additional details if you want a better answer.

Are you expecting the output to show up on the console where splunkweb is launched? What's your script doing exactly? Running custom scripts from CherryPy should probably be pretty limited; I image it would be pretty easy to consume a bunch of threads and cause the whole UI to hang (or at least slow down significantly.)

So as an alternate approach, why not just send your output to a log file, preferably one that Splunk can read? Then use Splunk's real-time search capability to show the contents of the log concurrently with whatever else you want to see at the same time.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...