logstash 报错 logstash.agent 解决

[ERROR][logstash.agent           ] 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 ./stdin-test2.conf -t 检查配置文件,报错误提示 [FATAL][logstash.runner          ] 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后少一个{

你可能感兴趣的:(运维,知识点)