How to reload logstash conf files - Docker container

What is the easiest way to tell Logstash to reload its configuration (.conf) files?

I am now running the Elastic Stack, and Logstash, in a Docker container (sebp-elk, to be specific).

Now, I am restarting the entire container with this command:

sudo docker restart elk

...this is a bit overkill.

Is there a way to tell Logstash, "Hey, the config has changed. Please reload."

tyvm, Keith

Add --config.reload.automatic to the command line. It will then reload the configuration whenever it changes.

Thx for response. I'm running sebp-elk in a docker container.

I also want to do it manually for now.

OK, send it a SIGHUP and it will reload the configuration.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.