Dashboards & Visualizations

How do I execute Splunk CLI command using a button (onclick) in a XML/HTML Splunk Dashboard?

antoniofacchi
New Member

Hi All,

I would like to execute a CLI command (to start/stop Splunkd) using a button (onclick) in a XML/HTML Splunk Dashboard.

How can do it?

Many thanks for the support.

Best regards
Antonio

0 Karma

antoniofacchi
New Member

Hi,
maybe I didn't say it clear enought, sorry.

What I need is a jquery executing the commands when I press a button in a my own dashbord. How can I do?
Sorry again.
Thanks and regards
Antonio

0 Karma

harishalipaka
Motivator

Hi @antoniofacchi

Have a look into this link.
It near by what do you want.

Link_answer_chick here

Thanks
Harish
0 Karma

Dawson014
Path Finder

Hi,

If you are trying to start/stop splunkd for a forwarder maybe, take a look at this application -
https://splunkbase.splunk.com/app/2775/

Or, there is already provision in splunk to restart from ui.
Click on Settings > Server controls

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...