[ERROR][ ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, { at line 2, column 5 (byte 11) after input\n ",
使用 ./bin/logstash -f ./ -t 检查配置文件,报错误提示 [FATAL][ ] The given configuration is invalid. Reason: Expected one of #, { at line 2, column 5 (byte 11) after input
配置文件如下:
input
file {
path => ["/var/log/*.log", "/var/log/message"]
type => "system"
start_position => "beginning"
}
}
output {
stdout{
}
}
发现input后少一个{