# How can I add field by a same field when across event

**URL:** <https://discuss.elastic.co/t/how-can-i-add-field-by-a-same-field-when-across-event/326551>\
**Category:** Logstash\
**Created:** [February 27, 2023, 8:09am UTC](https://discuss.elastic.co/t/how-can-i-add-field-by-a-same-field-when-across-event/326551 "2023-02-27T08:09:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OICAn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oican/32/117777_2.png) [@OICAn](https://discuss.elastic.co/u/OICAn)\
**Post date:** [February 27, 2023, 8:09am UTC](https://discuss.elastic.co/t/how-can-i-add-field-by-a-same-field-when-across-event/326551/1 "2023-02-27T08:09:02Z")

</div>

A user access our system will trigger many transcations. A transaction will generate some log, which are serval event in es and they have a same field called "globalNo". One event will log the name of the transaction and add the field "transName" .  
Now I want to add the field "transName" to the events which have the same field "globalNo", how can I make it!  
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:** [March 27, 2023, 8:09am UTC](https://discuss.elastic.co/t/how-can-i-add-field-by-a-same-field-when-across-event/326551/2 "2023-03-27T08:09:15Z")

</div>

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