# Import csv file to elasticsearch using logstash

**URL:** <https://discuss.elastic.co/t/import-csv-file-to-elasticsearch-using-logstash/83682>\
**Category:** Logstash\
**Created:** [April 26, 2017, 11:09am UTC](https://discuss.elastic.co/t/import-csv-file-to-elasticsearch-using-logstash/83682 "2017-04-26T11:09:52Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Alvaro\_Sanz\_Garrigue](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Alvaro\_Sanz\_Garrigue](https://discuss.elastic.co/u/Alvaro_Sanz_Garrigue)\
**Post date:** [April 26, 2017, 3:32pm UTC](https://discuss.elastic.co/t/import-csv-file-to-elasticsearch-using-logstash/83682/10 "2017-04-26T15:32:31Z")

</div>

Hi, to solve the error

> ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.

You must replacein the runner.rb file at  
( [your\_path\_to]/logstash-5.3.0\logstash-core\lib\logstash\runner.rb) the line:

> LogStash::Logging::Logger::initialize("file://" + log4j\_config\_location)

by the line:

> LogStash::Logging::Logger::initialize("file:///" + log4j\_config\_location)

I had this problem and I solved it but I still having a problem similar to yours (the index is not created in elasticsearch) . I posted it in a new topic [here](https://discuss.elastic.co/t/importing-csv-with-logstash-and-create-an-index-in-elasticsearch/83689)

---

_[View the full topic](https://discuss.elastic.co/t/import-csv-file-to-elasticsearch-using-logstash/83682)._
