logstash_agent.conf 语法注意事项

编写配置文件时要注意语法,如新版本的logstash对参数host变更为hosts,去除了port参数等。

[root@localhost logstash]# cat logstash_agent.conf 
input {
    file {
        type => "messages"
        path => ["/var/log/messages"]
    }
}

output {
    elasticsearch {
        hosts => "192.168.96.128"
    }
}

 

posted @ 2016-10-19 17:18  北海悟空  阅读(1065)  评论(0编辑  收藏  举报