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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...