Import CSV file true elasticsearch in Kibana with Docker

Hi there,

I have a big problem here.

I would like to import some csv files in Kibana to process them true elastich search.
When i try with my local machine evritying is working fine doing : logstash -f /my_folder/logstash.conf

But now that I'm using Docker and is all about containers i have some problem.
Is working only if i pass stdin and a normal message but with my working directory of my pc is dosn't work.

I supposed i have to put my csv in the containers??

my logstash config file is this one:
input {
file {
path => ["/home/sirox/Base_Sim/base2012prova.csv"]
type => "csv"
}
}

filter {
csv {
columns => ["idade","sexo","racacor"]
separator => ","
}
}

output {
elasticsearch {
hosts => [ "http://elasticsearch:9200" ]

}
}

the command that i use to submit my file is:

docker run -h logstash --name logstash --link elasticsearch:elasticsearch -it --rm -v "$PWD":/config-dir logstash -f /config-dir/logstash.conf

I really appreciate if you could help me.
Thanks a lot

Alberto

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