【发布时间】:2020-04-24 04:39:11
【问题描述】:
我正在使用最新版本的 logstash(7.6.2)。我尝试上传示例数据,并能够使用 logstash(启用自动重新加载)成功将其上传到 elasticsearch,并且能够在 Kibana 界面中看到索引。
但是,当我对以下配置文件进行更改时,我无法在 Kibana 界面中看到更新的数据。我试图删除 mutate 过滤器插件并重新加载 logstash 管道,但 Kibana 中的数据未更新。有趣的是它没有抛出任何错误。
Sample.conf
input{
file{
path => "/usr/local/Cellar/sample.log"
start_position => "beginning"
}
}
filter{
grok{
match => ["message", "%{TIMESTAMP_ISO8601:timestamp_string}%{SPACE}%{GREEDYDATA:line}"]
}
date{
match => ["timestamp_string", "ISO8601"]
}
mutate{
remove_field => [message, timestamp_string]
}
}
output{
elasticsearch{
hosts => ["localhost:9200"]
index => "sample"
}
stdout{
codec => rubydebug
}
}
感谢您提供任何帮助。 TIA
附: - 我是 ElasticSearch 的新手!
【问题讨论】:
标签: logstash logstash-configuration