Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

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
Highlighted

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

Hi @antoniofacchi

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

Linkanswerchick here

0 Karma
Highlighted

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

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