# Logstash read all CSV

**URL:** <https://discuss.elastic.co/t/logstash-read-all-csv/202728>\
**Category:** Logstash\
**Created:** [October 8, 2019, 8:50pm UTC](https://discuss.elastic.co/t/logstash-read-all-csv/202728 "2019-10-08T20:50:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SirJune](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sirjune/32/55205_2.png) [@SirJune](https://discuss.elastic.co/u/SirJune)\
**Post date:** [October 8, 2019, 8:50pm UTC](https://discuss.elastic.co/t/logstash-read-all-csv/202728/1 "2019-10-08T20:50:46Z")

</div>

this one kind of confuses me.

I have 4 logfiles, all CSV format.

logfile13.csv  
logfile14.csv  
logfile15.csv  
logfile16.csv

myconfig states:

```
   path => "/var/log/csv/logfile*"
  start_position => "beginning"
  sincedb_path => "logstash.sincedb"

```

i started with empty sincedb file. My thought is logstash will read all CSV files and send them to elasticsearch. I went to discover page and found that only logfile13.csv was loaded.

the sincedb file has the following:  
4907010 0 64778 169780936 1570565952.73288 /var/log/csv/logfile13.csv  
4907013 0 64778 91910063 1570565952.593822 /var/log/csv/logfile14.csv  
4907011 0 64778 157496500 1570565952.743978 /var/log/csv/logfile15.csv  
4907012 0 64778 147746309 1570565952.59943 /var/log/csv/logfile16.csv

Any thoughts/tips are greatly appreciated.

---

<div class="post-metadata">

**Author:** ![SirJune](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sirjune/32/55205_2.png) [@SirJune](https://discuss.elastic.co/u/SirJune)\
**Post date:** [October 8, 2019, 9:33pm UTC](https://discuss.elastic.co/t/logstash-read-all-csv/202728/2 "2019-10-08T21:33:17Z")

</div>

found it! leading space character!

"datetime" =\> " 2019-10-01 08:37:57.467"

---

<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:** [November 5, 2019, 9:33pm UTC](https://discuss.elastic.co/t/logstash-read-all-csv/202728/3 "2019-11-05T21:33:20Z")

</div>

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