# Update Logstash Keystore while it's running as a Service

**URL:** https://discuss.elastic.co/t/update-logstash-keystore-while-its-running-as-a-service/323268
**Category:** Logstash
**Created:** [January 16, 2023, 3:51pm UTC](https://discuss.elastic.co/t/update-logstash-keystore-while-its-running-as-a-service/323268 "2023-01-16T15:51:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hichem](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Hichem](https://discuss.elastic.co/u/Hichem)
#### Post date: [January 16, 2023, 3:51pm UTC](https://discuss.elastic.co/t/update-logstash-keystore-while-its-running-as-a-service/323268/1 "2023-01-16T15:51:06Z")

</div>

Is there is any recommendation on how to make changes to Logstash keystore variables (update variable or add new ones) while the service is running.  
Do we need to stop the service before making changes?  
Does it require a restart of the service for the changes to take effect?

Thanks,

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 16, 2023, 4:48pm UTC](https://discuss.elastic.co/t/update-logstash-keystore-while-its-running-as-a-service/323268/2 "2023-01-16T16:48:46Z")

</div>

You can add or remove variables to the Keystore while Logstash is running, but you will need to restart the service for the new values to work.

---

<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: [February 13, 2023, 4:49pm UTC](https://discuss.elastic.co/t/update-logstash-keystore-while-its-running-as-a-service/323268/3 "2023-02-13T16:49:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Trevor\_Blackford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trevor_blackford/32/120087_2.png) [@Trevor\_Blackford](https://discuss.elastic.co/u/Trevor_Blackford)
#### Post date: [January 10, 2025, 4:33pm UTC](https://discuss.elastic.co/t/update-logstash-keystore-while-its-running-as-a-service/323268/4 "2025-01-10T16:33:24Z")

</div>

We recently did some testing of this and found that using automatic configuration reloading you can get the config to read a new value of the configuration with a pipeline rather than a logstash restart. [Reloading the Config File | Logstash Reference [8.17] | Elastic](https://www.elastic.co/guide/en/logstash/current/reloading-config.html)

You need to make an explicit change to the pipeline configuration, not just the keystore value for the reload, so having a minor value that can be altered is a way around the service restart limitation
