# How do I created a scripted field from a message field that I already have

**URL:** https://discuss.elastic.co/t/how-do-i-created-a-scripted-field-from-a-message-field-that-i-already-have/226846
**Category:** Elasticsearch
**Created:** [April 7, 2020, 7:48am UTC](https://discuss.elastic.co/t/how-do-i-created-a-scripted-field-from-a-message-field-that-i-already-have/226846 "2020-04-07T07:48:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bharati](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@bharati](https://discuss.elastic.co/u/bharati)
#### Post date: [April 7, 2020, 7:48am UTC](https://discuss.elastic.co/t/how-do-i-created-a-scripted-field-from-a-message-field-that-i-already-have/226846/1 "2020-04-07T07:48:38Z")

</div>

Hello,

I am new to scripted fields . I have a field "message" in my logs. I am trying to create scripted fields/customized fields for the content inside the message field. Can anyone please tell me how to create custom fields in this case. I need the content of the message field split up into individual fields.

 ![Untitled](https://us1.discourse-cdn.com/elastic/original/3X/2/5/2519305c06fb2e3609d928fd149aab67c9aacf42.png)

---

<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: [April 7, 2020, 8:36am UTC](https://discuss.elastic.co/t/how-do-i-created-a-scripted-field-from-a-message-field-that-i-already-have/226846/2 "2020-04-07T08:36:06Z")

</div>

You should really parse this out before you index the documents as using scripted fields moves all the processing to query time which will be slow and scale badly.

---

<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: [May 5, 2020, 8:36am UTC](https://discuss.elastic.co/t/how-do-i-created-a-scripted-field-from-a-message-field-that-i-already-have/226846/3 "2020-05-05T08:36:07Z")

</div>

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