Splunk Search

How can I view Splunk results via GUI when job was started via API?

Tosheey123
Loves-to-Learn

I have a problem where I need to use the Splunk API to return timechart graphs as an image, however as the API cannot do this I need to find another solution. I dont want to do down the route of using a local application to turn the returned data into a visualisation. I thought that a potential solution could involve starting the search via the API and obtaining the search/job id. The script would then login to the Splunk GUI instance and use the ID to find the search job and view the visualization as a human would. I could then screenshot the result solving the problem. However I dont see a way of taking a search ID and using it to get the visualization of that specific search. This is needed as part of a project that populates Jira tickets so using the SplunkJS framework would be a complex solution that I would like to avoid if possible.

Any help would be greatly appreciated 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

And why can't you use | loadjob?

It looks like a quite easy feat to do something like you're describing with - for example - selenium. Just log in, load the job, switch to visualization pane, get a screenshot.

But while you're at it, why not spawn the job from the selenium session anyway?

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...