Parsing a directory containing csv files as input (all of them new and ignore_older=0)


(Amouzigh Driss) #1

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


(Amouzigh Driss) #2

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

However I'm using Windows!!
strange.


(system) #3

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