# I have the date time in the first log line.. I am trying to add this date to all following events after it has been matched once, making it act like a global variable in some ways

**URL:** <https://discuss.elastic.co/t/i-have-the-date-time-in-the-first-log-line-i-am-trying-to-add-this-date-to-all-following-events-after-it-has-been-matched-once-making-it-act-like-a-global-variable-in-some-ways/195584>\
**Category:** Logstash\
**Created:** [August 17, 2019, 4:41am UTC](https://discuss.elastic.co/t/i-have-the-date-time-in-the-first-log-line-i-am-trying-to-add-this-date-to-all-following-events-after-it-has-been-matched-once-making-it-act-like-a-global-variable-in-some-ways/195584 "2019-08-17T04:41:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![satyam2593](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@satyam2593](https://discuss.elastic.co/u/satyam2593)\
**Post date:** [August 17, 2019, 4:41am UTC](https://discuss.elastic.co/t/i-have-the-date-time-in-the-first-log-line-i-am-trying-to-add-this-date-to-all-following-events-after-it-has-been-matched-once-making-it-act-like-a-global-variable-in-some-ways/195584/1 "2019-08-17T04:41:52Z")

</div>

Here is the sample log lines

* * *

## START the log printing 08/08/19 09:10:06 343

7066|DestroyJavaVM|0.0|11.3  
7072|Reference Handler|0.0|11.3  
31204|qtp1459076321-3197|0.0|11.3

There is no unique values to use the aggregate filter.. How can i achieve this to add the date field

---

<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:** [September 14, 2019, 4:41am UTC](https://discuss.elastic.co/t/i-have-the-date-time-in-the-first-log-line-i-am-trying-to-add-this-date-to-all-following-events-after-it-has-been-matched-once-making-it-act-like-a-global-variable-in-some-ways/195584/2 "2019-09-14T04:41:54Z")

</div>

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