# Create a field for a specific line number

**URL:** <https://discuss.elastic.co/t/create-a-field-for-a-specific-line-number/133151>\
**Category:** Logstash\
**Created:** [May 24, 2018, 1:01pm UTC](https://discuss.elastic.co/t/create-a-field-for-a-specific-line-number/133151 "2018-05-24T13:01:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![motts](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@motts](https://discuss.elastic.co/u/motts)\
**Post date:** [May 24, 2018, 1:01pm UTC](https://discuss.elastic.co/t/create-a-field-for-a-specific-line-number/133151/1 "2018-05-24T13:01:04Z")

</div>

Hello,

I have these logs that have fields and values, except for the 3rd line of every log. Is there something I can do in Logstash that gives the 3rd line a field for that value?

Here is an example of my data in JSON:

> ---Begin event transaction---\rMay 07 09:14:08 2018\r665\r

I would like it to be this instead:

> EventID:665

Thank you for your time.

---

<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:** [June 21, 2018, 1:01pm UTC](https://discuss.elastic.co/t/create-a-field-for-a-specific-line-number/133151/2 "2018-06-21T13:01:04Z")

</div>

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