# How to create a field that filters the data

**URL:** <https://discuss.elastic.co/t/how-to-create-a-field-that-filters-the-data/339861>\
**Category:** Elasticsearch\
**Created:** [August 1, 2023, 9:01pm UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-filters-the-data/339861 "2023-08-01T21:01:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jennifer\_Coley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jennifer_coley/32/122429_2.png) [@Jennifer\_Coley](https://discuss.elastic.co/u/Jennifer_Coley)\
**Post date:** [August 1, 2023, 9:01pm UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-filters-the-data/339861/1 "2023-08-01T21:01:50Z")

</div>

I have a "message" field contains bulk of data(like customerName,number,address) in logstash,

Now I want to create a new field that filter the data contains only word " **Incoming Message:**"  
I'm using ELK 8.6.0

I am trying to split field "message" that is structured as follows:

'2023-08-01T21:11:54 \<local.info\> [web.site.com](http://web.site.com) IncomingMax1[123] 2023-08-01 11:10:54,123 INFO 987654321 Message.py 12 Incoming Message:'  
'\<nl John'  
'\<nl 672-222-2222'  
'\<nl NC'  
'\<nl USA'

I would like to split the above data to NEW fields :

Newfield: RESULTS ( that contains all logs having word **Incoming Message:** )

thanks a lot

---

<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 29, 2023, 9:02pm UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-filters-the-data/339861/2 "2023-08-29T21:02:27Z")

</div>

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