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!

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

[Coming Soon] Splunk Observability Cloud - Enhanced navigation with a modern look and ...

We are excited to introduce our enhanced UI that brings together AppDynamics and Splunk Observability. This is ...