# New field creation in kibana

**URL:** <https://discuss.elastic.co/t/new-field-creation-in-kibana/227082>\
**Category:** Kibana\
**Created:** [April 8, 2020, 8:32am UTC](https://discuss.elastic.co/t/new-field-creation-in-kibana/227082 "2020-04-08T08:32:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [April 8, 2020, 8:32am UTC](https://discuss.elastic.co/t/new-field-creation-in-kibana/227082/1 "2020-04-08T08:32:54Z")

</div>

HI Team,  
I have few question and need to know whether its possible to achieve it or not,

i have parsed logs information via logstash to Elasticsearch and index created. i want to extract specific data from my message is that any way is available to achieve it. I know how to achieve this via logstash config and i dont want to change current config of logstash..

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 8, 2020, 8:35am UTC](https://discuss.elastic.co/t/new-field-creation-in-kibana/227082/2 "2020-04-08T08:35:40Z")

</div>

You can do this using scripted fields: [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

However, it's highly recommended to use logstash for this, because scripted fields will be significantly slower. This is especially relevant when you are using them in filters.

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [April 8, 2020, 8:38am UTC](https://discuss.elastic.co/t/new-field-creation-in-kibana/227082/3 "2020-04-08T08:38:37Z")

</div>

For Example: i have message and i need to extract user id value in that message. so i can achieve that via above method?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 8, 2020, 12:24pm UTC](https://discuss.elastic.co/t/new-field-creation-in-kibana/227082/4 "2020-04-08T12:24:54Z")

</div>

Yes, in the script you can access the current document and use things like regexes to extract things from another string field.

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [April 8, 2020, 1:04pm UTC](https://discuss.elastic.co/t/new-field-creation-in-kibana/227082/5 "2020-04-08T13:04:55Z")

</div>

> [@flash1293](#):
>
> Yes, in the script you can access the current document and use things like regexes to extract things from another string field.

Thanks a lot @flash1293 will work around let you know the status

---

<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 6, 2020, 1:04pm UTC](https://discuss.elastic.co/t/new-field-creation-in-kibana/227082/6 "2020-05-06T13:04:58Z")

</div>

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