# How can I see which line of the csv file I am on?

**URL:** <https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613>\
**Category:** Logstash\
**Created:** [July 14, 2021, 6:06am UTC](https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613 "2021-07-14T06:06:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [July 14, 2021, 6:06am UTC](https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613/1 "2021-07-14T06:06:56Z")

</div>

Hello friends, I have a question. When transferring data to elasticsearch with Logstash, can I see which line of the csv file it is in? For example, the field named path shows me which csv file I am in. So, is there a field or a method that shows which line I am in the csv file?

---

<div class="post-metadata">

**Author:** ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)\
**Post date:** [July 14, 2021, 6:16am UTC](https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613/2 "2021-07-14T06:16:36Z")

</div>

Hi  
(If I understand it correctly) According to the bellow page, you can't see which line of a csv is shipping into elasticsearch:

> **[Csv filter plugin | Logstash Reference \[7.13\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-csv.html)**

The logstash does given methods on whole file

---

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [July 14, 2021, 6:27am UTC](https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613/3 "2021-07-14T06:27:46Z")

</div>

@Farid_N thank you for replying 🙂

---

<div class="post-metadata">

**Author:** ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)\
**Post date:** [July 14, 2021, 6:31am UTC](https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613/4 "2021-07-14T06:31:32Z")

</div>

If you are using Elasticstack on linux, you may see details with `watch -n 1 'journalctl -u logstash | tail -n 50'` on stdout... 🙂

---

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [July 14, 2021, 6:39am UTC](https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613/5 "2021-07-14T06:39:43Z")

</div>

Unfortunately, I don't use linux, I use windows ☹ . What I want to do is to show which csv file it is in the source of the document and on which line of that csv file it is after importing the rows to 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:** [August 11, 2021, 6:40am UTC](https://discuss.elastic.co/t/how-can-i-see-which-line-of-the-csv-file-i-am-on/278613/6 "2021-08-11T06:40:36Z")

</div>

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