-
Hi all,
Tried also to use in alternative the native_json approach but i am always getting error 500 parse error (even with the json well formatted).
Input json:
Error from vector: Any idea out there? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @bmgante, you are removing the timestamp with |
Beta Was this translation helpful? Give feedback.
Hello, I looked at the implementation. Code is here: https://github.com/vectordotdev/vector/blob/master/src/transforms/log_to_metric.rs#L786-L790
The
log_to_metric
transform should use the timestamp from the log. If a timestamp is not set, it will usenow()
. Maybe when you were testing this, the log didn't have a timestamp or it was not at the expected path. There are also unit tests for this but an easy way to verify is to override the timestamp and check the end result: