# Csv plugin cooperating with multiplying pattern

**URL:** <https://discuss.elastic.co/t/csv-plugin-cooperating-with-multiplying-pattern/309865>\
**Category:** Logstash\
**Created:** [July 18, 2022, 9:34am UTC](https://discuss.elastic.co/t/csv-plugin-cooperating-with-multiplying-pattern/309865 "2022-07-18T09:34:25Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [July 19, 2022, 10:39pm UTC](https://discuss.elastic.co/t/csv-plugin-cooperating-with-multiplying-pattern/309865/11 "2022-07-19T22:39:46Z")

</div>

I would use

```
ruby { code => '@@metadata = event.get("@timestamp")' }

```

for the snapshot lines, and

```
ruby { code => 'event.set("@timestamp", @@metadata)' }

```

for the others.

---

_[View the full topic](https://discuss.elastic.co/t/csv-plugin-cooperating-with-multiplying-pattern/309865)._
