logstash報錯[ERROR][logstash.config.sourceloader] No configuration found in the configured sources.

[root@localhost bin]# ./logstash -f first-pipeline.conf --config.test_and_exit
[2019-11-03T22:08:35,997][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-11-03T22:08:36,154][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"/usr/local/logstash/bin/first-pipeline.conf"}
[2019-11-03T22:08:36,178][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.

報錯信息如上,遇到這種情況大致是這幾個原因

1、配置文件沒有讀取權限;
2、配置文件不存在;
3、文件名與運行的文件名不匹配;

還有一種情況就是有的人會在config文件夾下創建了“*.yml”或“*.conf”文件,造成了執行的命令找不到該文件報錯,解決辦法是運行的時候加上配置文件的路徑或者把該配置文件放在執行程序目錄下。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章