Splunk Search

How can I use SDK or RESTfulAPI to retrieve the SPL definition inside a panel of a dashboard?

tlam_splunk
Splunk Employee
Splunk Employee

How can I use SDK or RESTfulAPI to retrieve the SPL definition inside a panel of a dashboard?

Tags (1)
0 Karma

tlam_splunk
Splunk Employee
Splunk Employee

I finally find the answer. When using the SDK to get the dashboard data,

GET data/ui/views/{name} method detail

We can get the eai:data (xml definition for the dashboard) and the SPL will be inside the xml. Have to go deeper level of xml.

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 ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...