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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...