# Deleted Dictionary data not removed from memory until restart

**URL:** <https://discuss.elastic.co/t/deleted-dictionary-data-not-removed-from-memory-until-restart/114756>\
**Category:** Logstash\
**Created:** [January 9, 2018, 8:52pm UTC](https://discuss.elastic.co/t/deleted-dictionary-data-not-removed-from-memory-until-restart/114756 "2018-01-09T20:52:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdouglas](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@cdouglas](https://discuss.elastic.co/u/cdouglas)\
**Post date:** [January 9, 2018, 8:52pm UTC](https://discuss.elastic.co/t/deleted-dictionary-data-not-removed-from-memory-until-restart/114756/1 "2018-01-09T20:52:41Z")

</div>

Hello,  
I am using Logstash 5 with dictionary lookups and a refresh interval of 60 seconds. I am having an issue where if I remove a line from a yml file, the change is not picked up until i restart Logstash. Adding or changing data works fine and updates without a restart. Has anyone else run across this and maybe have a work-around?

Thanks  
Chris

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [January 10, 2018, 4:07pm UTC](https://discuss.elastic.co/t/deleted-dictionary-data-not-removed-from-memory-until-restart/114756/2 "2018-01-10T16:07:11Z")

</div>

I can't think of a work around.

The existing dictionary is merged with newly read dictionary - so old K/V will stick around.

Maybe change the value of a no-longer-valid key to "\_\_no\_longer\_valid" and add some processing to remove the field if that value is seen?

---

<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 7, 2018, 4:07pm UTC](https://discuss.elastic.co/t/deleted-dictionary-data-not-removed-from-memory-until-restart/114756/3 "2018-02-07T16:07:23Z")

</div>

Closed on February 7, 2018, 4:07pm UTC

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