# Logstash information on csv loaded

**URL:** <https://discuss.elastic.co/t/logstash-information-on-csv-loaded/37847>\
**Category:** Logstash\
**Created:** [December 23, 2015, 10:53am UTC](https://discuss.elastic.co/t/logstash-information-on-csv-loaded/37847 "2015-12-23T10:53:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chicco\_95](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@chicco\_95](https://discuss.elastic.co/u/chicco_95)\
**Post date:** [December 23, 2015, 10:53am UTC](https://discuss.elastic.co/t/logstash-information-on-csv-loaded/37847/1 "2015-12-23T10:53:02Z")

</div>

hi,  
How can I config Logstash filter to know:

1. how many records in a csv have been uploaded
2. how many records in a csv have been updated
3. how many records in a csv have NOT been uploaded

thank you

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 23, 2015, 10:27pm UTC](https://discuss.elastic.co/t/logstash-information-on-csv-loaded/37847/2 "2015-12-23T22:27:38Z")

</div>

You could do 1 with [https://www.elastic.co/guide/en/logstash/current/plugins-filters-metrics.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-metrics.html)

But I cannot see how you can do 2 and 3, it has no concept of things being changed as it treats them as a stream.

---

<div class="post-metadata">

**Author:** ![chicco\_95](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@chicco\_95](https://discuss.elastic.co/u/chicco_95)\
**Post date:** [January 4, 2016, 11:05am UTC](https://discuss.elastic.co/t/logstash-information-on-csv-loaded/37847/3 "2016-01-04T11:05:35Z")

</div>

OK, i use a metrics it is working correctly, but how can I add that value as a metadata of elasticsearch ?

---

<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:** [July 6, 2017, 5:16am UTC](https://discuss.elastic.co/t/logstash-information-on-csv-loaded/37847/4 "2017-07-06T05:16:57Z")

</div>


