# Import CSV file true elasticsearch in Kibana with Docker

**URL:** <https://discuss.elastic.co/t/import-csv-file-true-elasticsearch-in-kibana-with-docker/89107>\
**Category:** Elasticsearch\
**Created:** [June 12, 2017, 8:30pm UTC](https://discuss.elastic.co/t/import-csv-file-true-elasticsearch-in-kibana-with-docker/89107 "2017-06-12T20:30:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto\_Sironi](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Alberto\_Sironi](https://discuss.elastic.co/u/Alberto_Sironi)\
**Post date:** [June 12, 2017, 8:30pm UTC](https://discuss.elastic.co/t/import-csv-file-true-elasticsearch-in-kibana-with-docker/89107/1 "2017-06-12T20:30:47Z")

</div>

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](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

---

<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:** [July 10, 2017, 8:31pm UTC](https://discuss.elastic.co/t/import-csv-file-true-elasticsearch-in-kibana-with-docker/89107/2 "2017-07-10T20:31:03Z")

</div>

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