Hi,
It seems the now processor behaves strangely
If I set a now processor in filebeat at the top yaml level like this:
processors:
- now:
field: metadata.timeline.t1
and configure Logstash like this:
input {
beats {
port => 5044
add_field => {
"[metadata][timeline][t1]" => "%{[@timestamp]}"
"[metadata][timeline][t2]" => "%{+yyyy-MM-dd'T'HH:mm:ss.SSS'Z'}"
}
}
}
I sometimes get correct timestamping like this one:
"metadata": {
"timeline": {
"t1": [
"2026-08-18T16:58:59.561Z",
"2026-08-18T16:58:59.561Z"
],
"t2": "2026-08-18T16:58:59.561Z"
}
where t2 is equal or after t1 (given by the @timestamp field comming from filebeat and by the filebeat "now" processor).
But I also have some messages like this:
"metadata": {
"timeline": {
"t1": [
"2026-08-18T16:59:04.568Z",
"2026-08-18T16:58:59.565Z"
],
"t2": "2026-08-18T16:58:59.565Z"
}
}
where the t1 = "2026-08-18T16:59:04.568Z" is given by the now processor and is"after" the filebeat given event @timestamp and after t2 wich is computed later, on the logsatsh side... I have checked that every time i get this behavior there is 5 seconds (plus 2 or 3 milliseconds ) in more than the @timestamp given for the event by filebeat.
Is the now processor a real "now" or just a cached timestamp which is computed roughly every 5 seconds ?
Thanks for your help,
Best regards
PS: My filebeat is in 9.4.0 version