# Extract data from one field and add that in another filed

**URL:** https://discuss.elastic.co/t/extract-data-from-one-field-and-add-that-in-another-filed/138649
**Category:** Logstash
**Created:** [July 5, 2018, 6:59am UTC](https://discuss.elastic.co/t/extract-data-from-one-field-and-add-that-in-another-filed/138649 "2018-07-05T06:59:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Avinash\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@Avinash\_Kumar](https://discuss.elastic.co/u/Avinash_Kumar)
#### Post date: [July 5, 2018, 6:59am UTC](https://discuss.elastic.co/t/extract-data-from-one-field-and-add-that-in-another-filed/138649/1 "2018-07-05T06:59:17Z")

</div>

all i have is events with content of log in message field , now i want to add few new fields and add relevant data to that field , how to achieve that?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 5, 2018, 7:08am UTC](https://discuss.elastic.co/t/extract-data-from-one-field-and-add-that-in-another-filed/138649/2 "2018-07-05T07:08:30Z")

</div>

Have a look at this [introduction to Logstash](https://www.elastic.co/blog/a-practical-introduction-to-logstash), which shows how to use grok and dissect to parse content.

---

<div class="post-metadata">

### Author: ![Avinash\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@Avinash\_Kumar](https://discuss.elastic.co/u/Avinash_Kumar)
#### Post date: [July 5, 2018, 7:16am UTC](https://discuss.elastic.co/t/extract-data-from-one-field-and-add-that-in-another-filed/138649/3 "2018-07-05T07:16:08Z")

</div>

![ss](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a92a6a719f623242066f674ff3eab16eef53fb9.png) i have this now i want to remove message field and add fields like "machine name", "Stack trace" etc.

---

<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 2, 2018, 7:29am UTC](https://discuss.elastic.co/t/extract-data-from-one-field-and-add-that-in-another-filed/138649/4 "2018-08-02T07:29:53Z")

</div>

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