-
Hi all, is it possible to set the TIMESTAMP field in an event received via HTTP input from the MESSAGE itself? The HTTP input plugin receives a simple JSON payload where one of the fields has epoch time in seconds (%s). I would like to set the TIMESTAMP of the event based on that specific field. Tried using a parser like this:
But not sure how to use this parser with my filter as that one also wants a key_name so I'm bit confused how to use it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
lua script to the rescue:
and the result:
|
Beta Was this translation helpful? Give feedback.
lua script to the rescue:
and the result:
[1] ds.log: [[1739818239.000000000, {}], {"reqId"=>"1239f220", "reqTimeSec"=>1739818239}]