# Logstash giving error regarding log4j

**URL:** <https://discuss.elastic.co/t/logstash-giving-error-regarding-log4j/84767>\
**Category:** Logstash\
**Created:** [May 5, 2017, 6:32pm UTC](https://discuss.elastic.co/t/logstash-giving-error-regarding-log4j/84767 "2017-05-05T18:32:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_singh/32/46630_2.png) [@Rohit\_Singh](https://discuss.elastic.co/u/Rohit_Singh)\
**Post date:** [May 5, 2017, 6:32pm UTC](https://discuss.elastic.co/t/logstash-giving-error-regarding-log4j/84767/1 "2017-05-05T18:32:56Z")

</div>

Using latest logstash 5.4.0, getting this error on startup

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.  
Sending Logstash's logs to /var/log/ which is now configured via log4j2.properties  
log4j:WARN No appenders could be found for logger (org.apache.kafka.clients.producer.ProducerConfig).  
log4j:WARN Please initialize the log4j system properly.  
log4j:WARN See [http://logging.apache.org/log4j/1.2/faq.html#noconfig](http://logging.apache.org/log4j/1.2/faq.html#noconfig) for more info.

Command being used is  
/logstash/bin/logstash -l /var/log/ --quiet --path.settings /logstash/config --config.reload.automatic -f /logstash/config.d/

Please advice

---

<div class="post-metadata">

**Author:** ![hammertime](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@hammertime](https://discuss.elastic.co/u/hammertime)\
**Post date:** [May 6, 2017, 1:47pm UTC](https://discuss.elastic.co/t/logstash-giving-error-regarding-log4j/84767/2 "2017-05-06T13:47:26Z")

</div>

I am also getting that error in WIndows.  
C:\logparser\logstash-5.3.2\bin\>logstash -f first-pipeline.conf --config.reload.automatic  
Sending Logstash's logs to C:/logparser/logstash-5.3.2/logs which is now configured via log4j2.properties  
[2017-05-06T23:19:41,248][INFO][logstash.pipeline] Starting pipeline {"id"=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>500}  
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).  
log4j:WARN Please initialize the log4j system properly.  
log4j:WARN See [http://logging.apache.org/log4j/1.2/faq.html#noconfig](http://logging.apache.org/log4j/1.2/faq.html#noconfig) for more info.  
[2017-05-06T23:19:41,989][INFO][logstash.inputs.beats] Beats inputs: Starting input listener {:address=\>"0.0.0.0:5043"}  
[2017-05-06T23:19:42,066][INFO][logstash.pipeline] Pipeline main started  
[2017-05-06T23:19:42,234][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

Trying top follow the tutorial.

---

<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:** [June 3, 2017, 1:49pm UTC](https://discuss.elastic.co/t/logstash-giving-error-regarding-log4j/84767/3 "2017-06-03T13:49:26Z")

</div>

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