# Adding a new field in logstash

**URL:** <https://discuss.elastic.co/t/adding-a-new-field-in-logstash/185102>\
**Category:** Logstash\
**Created:** [June 11, 2019, 6:35am UTC](https://discuss.elastic.co/t/adding-a-new-field-in-logstash/185102 "2019-06-11T06:35:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendachi](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@brendachi](https://discuss.elastic.co/u/brendachi)\
**Post date:** [June 11, 2019, 6:35am UTC](https://discuss.elastic.co/t/adding-a-new-field-in-logstash/185102/1 "2019-06-11T06:35:57Z")

</div>

Hello guys. I would like to ask if it is possible to take a section of the path field in logstash and create a new field where i can put it . For example the path fiel come out like this: "path" : "/home/data/pr/number/place" and i want to add anothe field to my data called ticket so i want this field to take a value pr, which is part of the path. Also i would like to ask how i can take the data that i would have queried in elastic search and use it for other things. thank youHello guys. I would like to ask if it is possible to take a section of the path field in logstash and create a new field where i can put it . For example the path fiel come out like this: "path" : "/home/data/pr/number/place" and i want to add anothe field to my data called ticket so i want this field to take a value pr, which is part of the path. Also i would like to ask how i can take the data that i would have queried in elastic search and use it for other things. thank you

---

<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 9, 2019, 6:36am UTC](https://discuss.elastic.co/t/adding-a-new-field-in-logstash/185102/2 "2019-07-09T06:36:00Z")

</div>

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