# How to append an existing filed to another existing filed

**URL:** <https://discuss.elastic.co/t/how-to-append-an-existing-filed-to-another-existing-filed/93652>\
**Category:** Logstash\
**Created:** [July 18, 2017, 6:39pm UTC](https://discuss.elastic.co/t/how-to-append-an-existing-filed-to-another-existing-filed/93652 "2017-07-18T18:39:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [July 18, 2017, 6:39pm UTC](https://discuss.elastic.co/t/how-to-append-an-existing-filed-to-another-existing-filed/93652/1 "2017-07-18T18:39:22Z")

</div>

Hi there!

How to append an existing filed to an another existing filed?

In kibana, I have like this

deviceId : 1,002  
level : INFO  
sessionId : EC142  
logmessage: Workflow has completed with bulkdata

So, now I want to append deviceId to logmessage field. It should appear like this:  
(Example- logmessage: Workflow has completed with bulkdata 1,002)

I used merge plugin from mutate but it doesn't show up.  
Can any one help with this?

Thanks!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 18, 2017, 6:42pm UTC](https://discuss.elastic.co/t/how-to-append-an-existing-filed-to-another-existing-filed/93652/2 "2017-07-18T18:42:44Z")

</div>

```nohighlight
mutate {
  replace => {
    "logmessage" => "%{logmessage} %{deviceId}"
  }
}

```

---

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [July 18, 2017, 6:50pm UTC](https://discuss.elastic.co/t/how-to-append-an-existing-filed-to-another-existing-filed/93652/3 "2017-07-18T18:50:04Z")

</div>

Awesome! Its working now.

Thanks Magnus.

---

<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:** [August 15, 2017, 6:50pm UTC](https://discuss.elastic.co/t/how-to-append-an-existing-filed-to-another-existing-filed/93652/4 "2017-08-15T18:50:19Z")

</div>

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