添加grep过滤器时,Logstash无法启动

时间:2015-04-29 15:46:03

标签: elasticsearch logstash kibana-4

我在我的本地部署了一个logstash实例,并且我正试图让头部缠绕它。我在logstash.conf文件中添加了一个简单的grep过滤器,但是当我重新启动服务时,它失败了。当我删除grep语句时,它工作正常。这是我的配置。任何帮助,将不胜感激。感谢。

input {
        kafka {
        zk_connect => "localhost:9091"
        topic_id => "rawlog"
        reset_beginning => false
        consumer_threads => 1
        consumer_restart_on_error => true
        consumer_restart_sleep_ms => 100
        decorate_events => false
    }

}
output {
  elasticsearch {
    bind_host => "localhost"
    protocol => "http"
  }
}
filter {
  grep {
    match => {"message"=>"hello-world"}
  }
}

0 个答案:

没有答案