You need to use a date
filter to set the @timestamp
to the timestamp field of the log.
So if you've got the time in a field called log_time
, you'd use a date
filter like this:
date {
match => [ "log_time", "ISO8601" ]
}
See the logstash documentation for additional details on how the date
filter works.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…