# Logstash enrichment

**URL:** <https://discuss.elastic.co/t/logstash-enrichment/166765>\
**Category:** Logstash\
**Created:** [February 1, 2019, 5:31pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765 "2019-02-01T17:31:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavankup](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pavankup](https://discuss.elastic.co/u/pavankup)\
**Post date:** [February 1, 2019, 5:31pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765/1 "2019-02-01T17:31:01Z")

</div>

Hi everyone,

I have date on the first line of my log . The subsequent lines only contain time. I would need to prefix date to each of the subsequent lines .

Please suggest an enrichment plugin that fits my requirement. I am pararelly browsing to see if I can find something that fits me.

Regards,  
Pavan

---

<div class="post-metadata">

**Author:** ![jdmcalee](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jdmcalee](https://discuss.elastic.co/u/jdmcalee)\
**Post date:** [February 1, 2019, 6:24pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765/2 "2019-02-01T18:24:36Z")

</div>

It sounds like the [Aggregate plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html) may do what you need.

---

<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:** [February 1, 2019, 6:42pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765/3 "2019-02-01T18:42:33Z")

</div>

If aggregate does not work you could resort to [ruby](https://discuss.elastic.co/t/method-to-timestamp-my-logstash-events/135888/9?u=badger).

---

<div class="post-metadata">

**Author:** ![pavankup](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pavankup](https://discuss.elastic.co/u/pavankup)\
**Post date:** [February 1, 2019, 11:15pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765/4 "2019-02-01T23:15:07Z")

</div>

Thanks in advance. I will try this out and let you know

---

<div class="post-metadata">

**Author:** ![pavankup](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pavankup](https://discuss.elastic.co/u/pavankup)\
**Post date:** [February 1, 2019, 11:51pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765/5 "2019-02-01T23:51:06Z")

</div>

Looks like aggregate is only for aggregating information spread across multiple events. I just want to prefix a string before every event . I will see what is available

---

<div class="post-metadata">

**Author:** ![jdmcalee](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jdmcalee](https://discuss.elastic.co/u/jdmcalee)\
**Post date:** [February 14, 2019, 8:33pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765/6 "2019-02-14T20:33:21Z")

</div>

sorry, I didn't notice your reply until now. I thought you needed to take the date from the first line, then add that to all the subsequent lines. is that not the case?

---

<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 14, 2019, 8:33pm UTC](https://discuss.elastic.co/t/logstash-enrichment/166765/7 "2019-03-14T20:33:28Z")

</div>

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