# Error start Logstash 5

**URL:** <https://discuss.elastic.co/t/error-start-logstash-5/63965>\
**Category:** Logstash\
**Created:** [October 26, 2016, 7:25am UTC](https://discuss.elastic.co/t/error-start-logstash-5/63965 "2016-10-26T07:25:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![axil\_76](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@axil\_76](https://discuss.elastic.co/u/axil_76)\
**Post date:** [October 26, 2016, 7:25am UTC](https://discuss.elastic.co/t/error-start-logstash-5/63965/1 "2016-10-26T07:25:36Z")

</div>

Hello,  
I just installed logstash 5 and when I run it with the following configuration I have an error message

> /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d -l /var/log/logstash --verbose --path.settings=/etc/logstash/

```
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties.
2016-10-26 02:37:40,628 Api Webserver ERROR No log4j2 configuration file found. Using default configuration: logging only errors to the console.

```

I do not see the problem

---

<div class="post-metadata">

**Author:** ![axil\_76](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@axil\_76](https://discuss.elastic.co/u/axil_76)\
**Post date:** [October 27, 2016, 9:03am UTC](https://discuss.elastic.co/t/error-start-logstash-5/63965/2 "2016-10-27T09:03:41Z")

</div>

I found the problem it was because of my input-twitter ...

---

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [October 27, 2016, 11:08am UTC](https://discuss.elastic.co/t/error-start-logstash-5/63965/3 "2016-10-27T11:08:20Z")

</div>

I have the same problem but under Windows  
Log4j file is not find, but it exist in E:/MCO/TDB/bin/logstash-5.0.0/config/log4j2.properties

The log show an error on "java.net.UnknownHostException: E".  
It seems that E is the drive of the log4j path.

```
C:\Users\hugues>E:\MCO\TDB\bin\logstash-5.0.0\bin\logstash -f "E:\MCO\TDB\Datasource\StoZ_Batch\test.conf"
ERROR StatusLogger Unable to access file://E:/MCO/TDB/bin/logstash-5.0.0/config/log4j2.properties
 java.net.UnknownHostException: E
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.ftp.impl.FtpClient.doConnect(Unknown Source)
        at sun.net.ftp.impl.FtpClient.tryConnect(Unknown Source)
        at sun.net.ftp.impl.FtpClient.connect(Unknown Source)
        at sun.net.ftp.impl.FtpClient.connect(Unknown Source)
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
        at java.net.URL.openStream(Unknown Source)
        at org.apache.logging.log4j.core.config.ConfigurationFactory.getInputFromUri(ConfigurationFactory.java:299)
        at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:234)
        at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:433)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:237)
        at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:157)
        at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:130)
```

---

<div class="post-metadata">

**Author:** ![jakommo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakommo/32/6716_2.png) [@jakommo](https://discuss.elastic.co/u/jakommo)\
**Post date:** [December 7, 2016, 4:47pm UTC](https://discuss.elastic.co/t/error-start-logstash-5/63965/4 "2016-12-07T16:47:52Z")

</div>

This is a bug tracked here [https://github.com/elastic/logstash/issues/6369](https://github.com/elastic/logstash/issues/6369)

---

<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 6, 2017, 4:29am UTC](https://discuss.elastic.co/t/error-start-logstash-5/63965/5 "2017-07-06T04:29:58Z")

</div>


