[英]"_dateparsefailure" while parsing date using date in logstash
[英]Date filter in Logstash is failing with dateparsefailure
我有以下logstash output。 我想用 Timestamp 字段的值更新@timestamp 字段(並最終從輸出中刪除 Timestamp 字段)。 我正在使用日期過濾器,但它不起作用。 下面是配置。 我無法理解我在這里缺少什么
Sample output
{
"@version" => "1",
"Timestamp" => "2020-07-25T22:06:09.1282069+05:30",
"Level" => "Information",
"headers" => {
"content_type" => "application/json; charset=utf-8",
"http_user_agent" => nil,
"request_path" => "/",
"http_host" => "localhost:8081",
"http_accept" => nil,
"request_method" => "POST",
"content_length" => "253",
"http_version" => "HTTP/1.1"
},
"tags" => [
[0] "_dateparsefailure"
],
"ExecutionId" => "4e1a5929-e52c-4aee-ae64-41f8750885ab",
"@timestamp" => 2020-07-25T16:36:09.474Z,
"RenderedMessage" => "This is Stream message with guid 4e1a5929-e52c-4aee-ae64-41f8750885ab",
"host" => "127.0.0.1",
"MessageTemplate" => "This is Stream message with guid 4e1a5929-e52c-4aee-ae64-41f8750885ab"
}
日期過濾器
filter {
date {
match => [ "Timestamp", "YYYY-MM-dd HH:mm:ss" ]
}
}
我能夠通過使用 ISO8601 格式解決此問題
filter {
date {
match => [ "Timestamp", "ISO8601" ]
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.