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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...