# Starting logstash error: No log4j2 configuration file found. Using default configuration: logging only errors to the console

**URL:** <https://discuss.elastic.co/t/starting-logstash-error-no-log4j2-configuration-file-found-using-default-configuration-logging-only-errors-to-the-console/95655>\
**Category:** Logstash\
**Created:** [August 3, 2017, 7:23am UTC](https://discuss.elastic.co/t/starting-logstash-error-no-log4j2-configuration-file-found-using-default-configuration-logging-only-errors-to-the-console/95655 "2017-08-03T07:23:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_yang/32/20719_2.png) [@Joe\_Yang](https://discuss.elastic.co/u/Joe_Yang)\
**Post date:** [August 3, 2017, 7:23am UTC](https://discuss.elastic.co/t/starting-logstash-error-no-log4j2-configuration-file-found-using-default-configuration-logging-only-errors-to-the-console/95655/1 "2017-08-03T07:23:57Z")

</div>

$ ./logstash -f ../first-pipeline.conf --config.reload.automatic  
**ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.**

Sending Logstash's logs to /home/mysqlmove/logstash-5.5.1/logs which is now configured via log4j2.properties  
[2017-08-03T15:19:22,734][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>[], :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}  
[2017-08-03T15:19:22,744][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://localhost:9200/](http://localhost:9200/), :path=\>"/"}  
[2017-08-03T15:19:23,173][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>#Java::JavaNet::URI:0x7dee3c8e}  
[2017-08-03T15:19:23,180][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil}  
[2017-08-03T15:19:23,277][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-_", "version"=\>50001, "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"\_all"=\>{"enabled"=\>true, "norms"=\>false}, "dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false, "fields"=\>{"keyword"=\>{"type"=\>"keyword", "ignore\_above"=\>256}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date", "include\_in\_all"=\>false}, "@version"=\>{"type"=\>"keyword", "include\_in\_all"=\>false}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}}  
[2017-08-03T15:19:23,305][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>[#Java::JavaNet::URI:0x5f00d175]}  
[2017-08-03T15:19:23,462][INFO][logstash.filters.geoip] Using geoip database {:path=\>"/home/mysqlmove/logstash-5.5.1/vendor/bundle/jruby/1.9/gems/logstash-filter-geoip-4.2.1-java/vendor/GeoLite2-City.mmdb"}  
[2017-08-03T15:19:23,557][INFO][logstash.pipeline] Starting pipeline {"id"=\>"main", "pipeline.workers"=\>2, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>250}  
[2017-08-03T15:19:25,098][INFO][logstash.inputs.beats] Beats inputs: Starting input listener {:address=\>"0.0.0.0:5043"}  
[2017-08-03T15:19:25,354][INFO][logstash.pipeline] Pipeline main started  
[2017-08-03T15:19:25,524][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

any advice would be appreciated.

---

<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:** [August 31, 2017, 7:24am UTC](https://discuss.elastic.co/t/starting-logstash-error-no-log4j2-configuration-file-found-using-default-configuration-logging-only-errors-to-the-console/95655/2 "2017-08-31T07:24:01Z")

</div>

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