Splunk Dev

Add export button on top of a dashboard

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

Thanks

Labels (4)
0 Karma

impurush
Contributor

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

BakaFon
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!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

November 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...