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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...