我想将logstash.log日志添加到我的ELK堆栈中,但是我总是有grokparsefailure。我的模式在http://grokconstructor.appspot.com/do/match#result上没问题

我的logstash conf文件(过滤器部分)是
filter {
if [application] == "logstash" {
grok {
match => { "message" => "\{:timestamp=>\"%{TIMESTAMP_ISO8601:timestamp}\", :message=>%{GREEDYDATA:errormessage}\}" }
}
date {
match => [ "timestamp" , "yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ" ]
}
}
}但仍然只在
{
"_index": "logstash-2016.05.03",
"_type": "logs",
"_id": "AVR3WUtpT8BPcJ-gVynN",
"_score": null,
"_source": {
"@version": "1",
"@timestamp": "2016-05-03T16:00:20.708Z",
"path": "/var/log/logstash/logstash.log",
"host": "xxx.arte.tv",
"application": "logstash",
"tags": [
"_grokparsefailure"
]我想我对{ ou“但不管有没有反斜杠”都有意见,但我还是觉得失败。
发布于 2016-05-04 15:12:19
遗憾的是,我在上一篇文章中没有错误,因为另一个conf文件中有remove_field消息,所以没有消息。
抱歉伙计们浪费时间
https://stackoverflow.com/questions/37009103
复制相似问题