# Keep track of Context ID and insert into every incoming record

**URL:** <https://discuss.elastic.co/t/keep-track-of-context-id-and-insert-into-every-incoming-record/178538>\
**Category:** Logstash\
**Created:** [April 25, 2019, 9:10pm UTC](https://discuss.elastic.co/t/keep-track-of-context-id-and-insert-into-every-incoming-record/178538 "2019-04-25T21:10:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingxue](https://avatars.discourse-cdn.com/v4/letter/i/edb3f5/32.png) [@ingxue](https://discuss.elastic.co/u/ingxue)\
**Post date:** [April 25, 2019, 9:10pm UTC](https://discuss.elastic.co/t/keep-track-of-context-id-and-insert-into-every-incoming-record/178538/1 "2019-04-25T21:10:35Z")

</div>

I am a newbie in ELK stack.  
My question is: There is an event containing a context id and coming to logstash. I need to keep track of this context id and put it in all the incoming events.  
How can it be done?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 26, 2019, 12:05am UTC](https://discuss.elastic.co/t/keep-track-of-context-id-and-insert-into-every-incoming-record/178538/2 "2019-04-26T00:05:20Z")

</div>

Reading through [this](https://discuss.elastic.co/t/is-there-an-output-plugin-that-can-be-used-to-update-logfile-index-output/176098) thread might help you, but it is not entirely clear what you want to do.

---

<div class="post-metadata">

**Author:** ![mgolubov55](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mgolubov55](https://discuss.elastic.co/u/mgolubov55)\
**Post date:** [May 9, 2019, 1:44pm UTC](https://discuss.elastic.co/t/keep-track-of-context-id-and-insert-into-every-incoming-record/178538/3 "2019-05-09T13:44:30Z")

</div>

Badger,

Could you take a look at my latest submission under Beats/Filebeat:

“How to send two different log file types from the same source directory to logstash”

Thank you,

Michael Golubov

Michael Golubov

QT IT - Trading Tools - US

()

---

<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 6, 2019, 1:44pm UTC](https://discuss.elastic.co/t/keep-track-of-context-id-and-insert-into-every-incoming-record/178538/4 "2019-06-06T13:44:30Z")

</div>

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