Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

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