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!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...