filter{
mutate{
add_field => ["time","%{@timestamp}"]
}
date {
match => [ "time", "YYYY-MM-dd'T'HH:mm:ss.SSSZ"]
timezone => "America/Montreal"
}
}
结果:"@timestamp" => 2017-05-23T07:19:53.313Z,
"time" => "2017-05-23T07:19:53.313Z"
加了filter处理改变时区但没有效果,请问是哪里错了呢?
mutate{
add_field => ["time","%{@timestamp}"]
}
date {
match => [ "time", "YYYY-MM-dd'T'HH:mm:ss.SSSZ"]
timezone => "America/Montreal"
}
}
结果:"@timestamp" => 2017-05-23T07:19:53.313Z,
"time" => "2017-05-23T07:19:53.313Z"
加了filter处理改变时区但没有效果,请问是哪里错了呢?
2 个回复
medcl - 今晚打老虎。
赞同来自: Swime_Cai
ChopinLin - 90后
赞同来自: