# How to reload logstash conf files - Docker container

**URL:** https://discuss.elastic.co/t/how-to-reload-logstash-conf-files-docker-container/201817
**Category:** Logstash
**Created:** [October 1, 2019, 1:58pm UTC](https://discuss.elastic.co/t/how-to-reload-logstash-conf-files-docker-container/201817 "2019-10-01T13:58:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kmiklas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmiklas/32/50730_2.png) [@kmiklas](https://discuss.elastic.co/u/kmiklas)
#### Post date: [October 1, 2019, 1:58pm UTC](https://discuss.elastic.co/t/how-to-reload-logstash-conf-files-docker-container/201817/1 "2019-10-01T13:58:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 1, 2019, 5:02pm UTC](https://discuss.elastic.co/t/how-to-reload-logstash-conf-files-docker-container/201817/2 "2019-10-01T17:02:55Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kmiklas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmiklas/32/50730_2.png) [@kmiklas](https://discuss.elastic.co/u/kmiklas)
#### Post date: [October 1, 2019, 6:46pm UTC](https://discuss.elastic.co/t/how-to-reload-logstash-conf-files-docker-container/201817/3 "2019-10-01T18:46:44Z")

</div>

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

I also want to do it manually for now.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 1, 2019, 7:00pm UTC](https://discuss.elastic.co/t/how-to-reload-logstash-conf-files-docker-container/201817/4 "2019-10-01T19:00:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 29, 2019, 7:00pm UTC](https://discuss.elastic.co/t/how-to-reload-logstash-conf-files-docker-container/201817/5 "2019-10-29T19:00:06Z")

</div>

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