Logstash logs are not generating

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;

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

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

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

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