Building for the Splunk Platform

Add export button on top of a dashboard

Loves-to-Learn Everything

I need to add an export button on the top of a dashboard, simply one that recall the built in function of splunk that let you select the name,  type of file and number of event saved.

I found the element that can recall that function, by typing it in the console i can call it but I have problems to integrate it inside a button i can put in my dashboard.

Do anyone have any idea on how to do it?

The function to call it is:


document.getElementsByClassName("btn-pill export")[0].click()



Any help will be appreciated.


Labels (4)
0 Karma


Hi @BakaFon 

I am trying to understand why you need to add a button to export when it is already available in Splunk. If you have access to export the dashboard, then you should have an export button in the dashboard by default.

0 Karma

Loves-to-Learn Everything

Yes I know, but sadly i need to move it on top of the dashboard table

0 Karma
Get Updates on the Splunk Community!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...