# Parsing a directory containing csv files as input (all of them new and ignore\_older=0)

**URL:** <https://discuss.elastic.co/t/parsing-a-directory-containing-csv-files-as-input-all-of-them-new-and-ignore-older-0/112819>\
**Category:** Logstash\
**Created:** [December 21, 2017, 12:37pm UTC](https://discuss.elastic.co/t/parsing-a-directory-containing-csv-files-as-input-all-of-them-new-and-ignore-older-0/112819 "2017-12-21T12:37:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amouzigh\_Driss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amouzigh_driss/32/25868_2.png) [@Amouzigh\_Driss](https://discuss.elastic.co/u/Amouzigh_Driss)\
**Post date:** [December 21, 2017, 12:37pm UTC](https://discuss.elastic.co/t/parsing-a-directory-containing-csv-files-as-input-all-of-them-new-and-ignore-older-0/112819/1 "2017-12-21T12:37:22Z")

</div>

Hello,

I'm trying to parse csv files and send the content to ElasticSearch.  
With one file it's OK. But when telling logstash to parse the entier directory it's not OK.  
Here's the config for one file:  
input {  
file {  
path =\> ["C:\myDirectory\file.csv"]  
sincedb\_path =\> "....\data\logst\since.db"  
start\_position =\> "beginning"  
ignore\_older =\> 0  
}  
}

file.csv is well loaded and can see the result in logstash terminal or in ElasticSearch.  
But for the directory I'm using:  
input {  
file {  
path =\> ["C:\myDirectory\*.csv"]  
sincedb\_path =\> "....\data\logst\since.db"  
start\_position =\> "beginning"  
ignore\_older =\> 0  
}  
}

and nothing happens.

I don't know why.  
Regards  
Driss

---

<div class="post-metadata">

**Author:** ![Amouzigh\_Driss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amouzigh_driss/32/25868_2.png) [@Amouzigh\_Driss](https://discuss.elastic.co/u/Amouzigh_Driss)\
**Post date:** [December 21, 2017, 12:47pm UTC](https://discuss.elastic.co/t/parsing-a-directory-containing-csv-files-as-input-all-of-them-new-and-ignore-older-0/112819/2 "2017-12-21T12:47:27Z")

</div>

> [@Amouzigh\_Driss](#):
>
> path =\> ["C:\myDirectory\*.csv"]

Just one precision / instead of \ it's working:  
When using path =\> ["C:/myDirectory/\*.csv"]

However I'm using Windows!!  
strange.

---

<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:** [January 18, 2018, 12:47pm UTC](https://discuss.elastic.co/t/parsing-a-directory-containing-csv-files-as-input-all-of-them-new-and-ignore-older-0/112819/3 "2018-01-18T12:47:29Z")

</div>

Closed on January 18, 2018, 12:47pm UTC

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