# Logstash Configuration of 5.0.1

**URL:** https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883
**Category:** Logstash
**Created:** [December 13, 2016, 2:45pm UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883 "2016-12-13T14:45:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 13, 2016, 2:45pm UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883/1 "2016-12-13T14:45:29Z")

</div>

After upgrading logstash to 5.0.1 , I am getting the following :

```
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. 

```

The configuration in **startup.options** is:

```
# Override Java location
JAVACMD=/usr/bin/java

# Set a home directory
LS_HOME=/usr/share/logstash

```

The files do exist in **/etc/logstash**

```
mpswrk1@eaasrt!MPS:/etc/logstash> ll
total 44
-rw-rw-r-- 1 root root 1659 Nov 12 00:28 startup.options
-rw-rw-r-- 1 root root 1333 Nov 12 00:28 **log4j2.properties**
-rw-rw-r-- 1 root root 1738 Nov 12 00:28 jvm.options
drwxrwxr-x 2 root root 4096 Nov 12 00:28 conf.d
drwxr-xr-x. 108 root root 12288 Dec 11 17:58 ..
-rw-rw-r-- 1 root root 2829 Dec 11 17:58 **logstash.yml**
-rwxr-xr-x 1 root root 6297 Dec 13 15:44 patterns
drwxr-xr-x 3 root root 4096 Dec 13 15:44 .

```

So, what do I miss here? How should I fix it?

Regards  
Sharon.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [December 13, 2016, 10:56pm UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883/2 "2016-12-13T22:56:03Z")

</div>

When do you get that?

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 9:34am UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883/3 "2016-12-14T09:34:28Z")

</div>

I am getting it when the logstash is booting up on the standard output.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [December 14, 2016, 10:22am UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883/4 "2016-12-14T10:22:14Z")

</div>

Then you can ignore it.

---

<div class="post-metadata">

### Author: ![nick.e](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nick.e](https://discuss.elastic.co/u/nick.e)
#### Post date: [December 14, 2016, 12:13pm UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883/5 "2016-12-14T12:13:38Z")

</div>

> [@ssasporta](#):
>
> I am getting it when the logstash is booting up on the standard output.

When starting with _bin/logstash_ logstash is searching for the file in $LS\_HOME/config by default. In your case, there aren't these files (because they are in the /etc/logstash directory).  
If you really want this warning to not appear, the simplest way is to **create a symlink**  
`config -> /etc/logstash/`

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 12:49pm UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883/6 "2016-12-14T12:49:55Z")

</div>

Yes, Solved !!! Thanks

---

<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: [January 11, 2017, 12:49pm UTC](https://discuss.elastic.co/t/logstash-configuration-of-5-0-1/68883/7 "2017-01-11T12:49:59Z")

</div>

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