Replies: 1 comment
-
Got it! I just needed transform:
log_statements:
- context: log
statements:
- set(observed_time_unix_nano, Int(attributes["MESSAGE_TIMESTAMP"])) Credits to: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Currently using sqlqueryreceiver with an Oracle DB to get some logs. Trying to explicitly set log timestamps in the transform processors. But without success. I tried:
Maybe the issue is the format of the data itself? It look like this:
2025-01-12T12:20:40.894842Z
And I also tried as an epoch ts with nano precision.
My receiver:
Currently verifying if it's work by exploring Logs timestamp in Grafana Loki. Currently, every logs get the current time, the one when the logs get's processed by the collector.
Thanks for any help!
Justin
Beta Was this translation helpful? Give feedback.
All reactions