Replies: 1 comment 1 reply
-
Hi @bmgante, you are removing the timestamp with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to use vector to generate metrics from logs (sent from nifi) using the log_to_metric. It works but i am not able to override the timestamp in the metric with a the .ts field comming from the log (need to send metrics in the past). Below my general vector config:
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:
{"timestamp":"2025-04-30T12:04:23.324593Z","level":"ERROR","message":"unable to process request (internal error)","status":500,"error":"Some(Rejection(ErrorMessage { code: 400, message: \"Failed decoding body: ParsingError(Error parsing JSON: Error(\\\"EOF while parsing an object\\\", line: 1, column: 1))\" }))","target":"warp::filters::trace","span":{"component_id":"nifi","component_kind":"source","component_name":"nifi","component_type":"http_server","name":"source"},"spans":[{"component_id":"nifi","component_kind":"source","component_name":"nifi","component_type":"http_server","name":"source"}]}
Any idea out there?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions