Unable to load CVS file ( OS Windows)


#1

Hi, I'm new on the Elastic Stack.
I try to load a cvs file on Elasticsearch using Logstash. I'm a Windows user.
Thisi is my config file
input {
file {
path => ["g:/file/articoli.cvs"]
start_position => "beginning"
sincedb_path => "nul"
}
}
filter {
csv {
separator => ","
columns => ["art" , "cod"]
}
}
output {
elasticsearch {
hosts => "localhost"
index => "sample_index"
}
stdout{ codec => rubydebug}
}

The message that I received didn't contain any error, but Elasticsearch didn't show me any output!

I deleted the sincedb_path file every time.
I Hope someone can halp me...
Chiara


#2

I found the mistaskes in configuration file.

path => "G:\file\articoli.csv"

sincedb_path => "NUL"

Now it work (windows 10).


#3

for windows, path must be as shown
path => "G:/file/articoli.csv"