Dashboards & Visualizations

How to create a button in Simple XML to export the results of all 5 tables in my dashboard to a CSV file?

Federica_92
Communicator

Hi everyone,

I have a dashboard with 5 tables. I would like create a button, maybe a submit button, to export all my results in a CSV file.
I already created the search in Splunk to export the file, but I don't know the XML code to link a single search with the button. Could anyone help me?

Thank you

0 Karma

sfatnass
Contributor

It's easy to pass on html dashboard and use global variable that will contain all your data

var array=[]
var obj ={}

obj.array=array;

var content = {
"field1":value1,
"field2":value2.....
}

then on submit action, you can retrieve (obj) and here you can insert in csv or kv store

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