# Logstash csv file

**URL:** <https://discuss.elastic.co/t/logstash-csv-file/298565>\
**Category:** Logstash\
**Created:** [March 1, 2022, 9:22pm UTC](https://discuss.elastic.co/t/logstash-csv-file/298565 "2022-03-01T21:22:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hana\_Ne](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hana_ne/32/31903_2.png) [@Hana\_Ne](https://discuss.elastic.co/u/Hana_Ne)\
**Post date:** [March 1, 2022, 9:22pm UTC](https://discuss.elastic.co/t/logstash-csv-file/298565/1 "2022-03-01T21:22:58Z")

</div>

I have question,  
How can we tell logstash to import only the first 10 lines from a csv file  
Thank you

---

<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:** [March 1, 2022, 9:39pm UTC](https://discuss.elastic.co/t/logstash-csv-file/298565/2 "2022-03-01T21:39:32Z")

</div>

Use a [throttle](https://www.elastic.co/guide/en/logstash/current/plugins-filters-throttle.html) filter with the file name as the key.

---

<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 29, 2022, 9:40pm UTC](https://discuss.elastic.co/t/logstash-csv-file/298565/3 "2022-03-29T21:40:29Z")

</div>

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