# Add the target field

**URL:** <https://discuss.elastic.co/t/add-the-target-field/202869>\
**Category:** Logstash\
**Created:** [October 9, 2019, 3:44pm UTC](https://discuss.elastic.co/t/add-the-target-field/202869 "2019-10-09T15:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayakumar\_Kannan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakumar_kannan/32/34873_2.png) [@Vijayakumar\_Kannan](https://discuss.elastic.co/u/Vijayakumar_Kannan)\
**Post date:** [October 9, 2019, 3:44pm UTC](https://discuss.elastic.co/t/add-the-target-field/202869/1 "2019-10-09T15:44:04Z")

</div>

Dear All,

My event is parsed against multiple patterns and then it generates fields . number of fields change against matched pattern. My aim is to add the target for all those random fields.

**Current**

```auto
src: 127.0.0.1
dst: 127.0.0.2

```

**Expected**

```auto
network.src 127.0.0.1
network.dst 127.0.0.2
```

---

<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:** [November 6, 2019, 3:44pm UTC](https://discuss.elastic.co/t/add-the-target-field/202869/2 "2019-11-06T15:44:06Z")

</div>

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