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 Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...