这是apache access_log的logstash配置:
input {
file {
path => "/var/log/http.log"
}
}
filter {
grok {
match => { "message" => "%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration}" }
}
}我想收集除%{WORD:method}以外的所有字段
如何才能让字段被跳过/忽略,从被转移到ElasticSearch?
发布于 2017-03-05 05:12:23
你应该在你的grok过滤器上使用变异块。
https://stackoverflow.com/questions/42588624
复制相似问题