# Create a new field from Message

**URL:** <https://discuss.elastic.co/t/create-a-new-field-from-message/44390>\
**Category:** Kibana\
**Created:** [March 15, 2016, 4:21am UTC](https://discuss.elastic.co/t/create-a-new-field-from-message/44390 "2016-03-15T04:21:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [March 15, 2016, 4:21am UTC](https://discuss.elastic.co/t/create-a-new-field-from-message/44390/1 "2016-03-15T04:21:27Z")

</div>

[method : GET] [requestUri : [https://myhost:4433/MyService/api/products/34221/availability/locationId/11111](https://myhost:4433/MyService/api/products/34221/availability/locationId/11111)] [reasonPhrase : OK]

This is the text which I receive under the Message field after searching. Is there a way I can create a new field called Method, URI and StatusCode and get the values.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 15, 2016, 4:30am UTC](https://discuss.elastic.co/t/create-a-new-field-from-message/44390/2 "2016-03-15T04:30:04Z")

</div>

Not in Kibana, you need to do it before it gets into Elasticsearch.

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [March 15, 2016, 12:35pm UTC](https://discuss.elastic.co/t/create-a-new-field-from-message/44390/3 "2016-03-15T12:35:42Z")

</div>

Could you please share a ref. link for implementimg this ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 15, 2016, 8:04pm UTC](https://discuss.elastic.co/t/create-a-new-field-from-message/44390/4 "2016-03-15T20:04:48Z")

</div>

[https://www.elastic.co/guide/en/logstash/current/index.html](https://www.elastic.co/guide/en/logstash/current/index.html)

---

<div class="post-metadata">

**Author:** ![szcountryboy](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@szcountryboy](https://discuss.elastic.co/u/szcountryboy)\
**Post date:** [March 16, 2016, 3:55am UTC](https://discuss.elastic.co/t/create-a-new-field-from-message/44390/5 "2016-03-16T03:55:40Z")

</div>

In logstash , you can add filter for processing

filter {  
mutate { add\_field =\> { "Method" =\> **regexpr expressions** } }  
}

---

<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:** [July 6, 2017, 1:59pm UTC](https://discuss.elastic.co/t/create-a-new-field-from-message/44390/6 "2017-07-06T13:59:01Z")

</div>


