Welcome to Splunk Answers, a Q&A forum for users to find answers to questions about deploying, managing, and using Splunk products. Contributors of all backgrounds and levels of expertise come here to find solutions to their issues, and to help other users in the Splunk community with their own questions.

This quick tutorial will help you get started with key features to help you find the answers you need. You will receive 10 karma points upon successful completion!

Refine your search:

Button in a dashboard to Restart an universal forwarder

1

I will have a dashboard which will show the list of servers which is not sending the logs and i will have "Button" against to that servers and when the user clicks the button the respective universal forwarders needs to be restarted.

Is there a way we can restart the running splunk universal forwarder service in the server. I thought of doing in the below ways,

Deploying an app with restartsplunkd=true in serverclass.conf, But i am not sure how this can be achieved in a "button" click

using curl with admin creadentials -> https://Hostname:8089/services/server/control/restart.......... but here the admin credentials will be in cleartext form.................