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!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...