# Logstash logs are not generating

**URL:** <https://discuss.elastic.co/t/logstash-logs-are-not-generating/273504>\
**Category:** Logstash\
**Created:** [May 20, 2021, 10:00am UTC](https://discuss.elastic.co/t/logstash-logs-are-not-generating/273504 "2021-05-20T10:00:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikramdayma](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vikramdayma](https://discuss.elastic.co/u/vikramdayma)\
**Post date:** [May 20, 2021, 10:00am UTC](https://discuss.elastic.co/t/logstash-logs-are-not-generating/273504/1 "2021-05-20T10:00:08Z")

</div>

Hi,

I setup logstash on centos7.  
I done some work on it. now logstash logs is not generating. It could not able to find logstash.yml and log4j2.properties.

There are warning;

```auto
sudo /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/pipeline4.conf
Using bundled JDK: /usr/share/logstash/jdk
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
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. Using default config which logs errors to the console
[INFO] 2021-05-20 15:17:28.759 [main] runner - Starting Logstash {"logstash.version"=>"7.12.0", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 11.0.10+9 on 11.0.10+9 +indy +jit [linux-x86_64]"}

```

I chnaged logstash directory owner from root to logstash

```auto
drwxr-xr-x. 2 logstash logstash 107 May 20 14:10 conf.d
drwxr-xr-x. 2 logstash logstash 6 May 16 11:04 dead_letter_queue
-rw-r--r--. 1 logstash logstash 2034 Mar 18 11:00 jvm.options
-rw-r--r--. 1 logstash logstash 7561 Mar 18 11:00 log4j2.properties
-rw-r--r--. 1 logstash logstash 812 May 16 11:16 logstash-sample.conf
-rw-r--r--. 1 logstash logstash 11779 May 20 14:47 logstash.yml
-rw-r--r--. 1 logstash logstash 415 May 20 14:35 pipelines.yml
drwxr-xr-x. 2 logstash logstash 6 May 16 11:04 queue
drwxr-xr-x. 2 logstash logstash 76 May 20 13:24 sqlquery
-rw-------. 1 logstash logstash 1696 Mar 18 11:00 startup.options
-rw-r--r--. 1 logstash logstash 36 May 16 11:05 uuid

```

Above file path is `/etc/logstash`

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![vikramdayma](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vikramdayma](https://discuss.elastic.co/u/vikramdayma)\
**Post date:** [May 24, 2021, 8:31am UTC](https://discuss.elastic.co/t/logstash-logs-are-not-generating/273504/2 "2021-05-24T08:31:06Z")

</div>

Hi,  
anyone face this issue earlier or I am the first 😀

---

<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 21, 2021, 8:31am UTC](https://discuss.elastic.co/t/logstash-logs-are-not-generating/273504/3 "2021-06-21T08:31:18Z")

</div>

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