# Logstash - Trying to assign an existing key to a new key's value

**URL:** <https://discuss.elastic.co/t/logstash-trying-to-assign-an-existing-key-to-a-new-keys-value/241017>\
**Category:** Logstash\
**Created:** [July 13, 2020, 5:48pm UTC](https://discuss.elastic.co/t/logstash-trying-to-assign-an-existing-key-to-a-new-keys-value/241017 "2020-07-13T17:48:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [July 13, 2020, 5:55pm UTC](https://discuss.elastic.co/t/logstash-trying-to-assign-an-existing-key-to-a-new-keys-value/241017/2 "2020-07-13T17:55:07Z")

</div>

I ask pretty much same question and got answer here

[https://discuss.elastic.co/t/flatten-json-and-create-dynamic-field/240360/9](https://discuss.elastic.co/t/flatten-json-and-create-dynamic-field/240360/9)

---

_[View the full topic](https://discuss.elastic.co/t/logstash-trying-to-assign-an-existing-key-to-a-new-keys-value/241017)._
