尽管 logstash.yml 存在,但 Logstash 找不到它

尽管 logstash.yml 存在,但 Logstash 找不到它

根据指示测试 logstash这里

这是我执行的命令(如果没有--path.settings它也不起作用):

/usr/share/logstash/bin/logstash -f logstash-simple.conf --path.settings /etc/logstash/logstash.yml 

但我收到了这个警告:

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.

每个人都应该有权限读取 logstash.yml:

ls -lsah /etc/
4.0K drwxrwxr-x   4 root root   4.0K Sep 15 16:35 logstash

ls -lsah /etc/logstash/
8.0K -rw-r--r--   1 root root 5.7K Sep 15 16:26 logstash.yml

版本:

/usr/share/logstash/bin/logstash --version
logstash 5.6.0

相关内容