Replies: 3 comments 2 replies
-
came across parse_timestamp and trying this modification...
but getting this error: |
Beta Was this translation helpful? Give feedback.
-
had a typo in my format string, should be: after that change, seems to works...but only label that shows up in loki/grafana is .log_time now, not the other labels im parsing. Also, the ingestion time showing is still the same, and does not match the log_time. Im guessing then .timestamp is not the value that is displayed as the ingestion time in loki+grafana? how would i change that time if i wanted to? |
Beta Was this translation helpful? Give feedback.
-
anyone have any idea why , without the line below that simply re-assigns the timestamp field, i get all my parsed fields showing in loki/grafana, but with it, ONLY the log_time field apparently is shown.
|
Beta Was this translation helpful? Give feedback.
-
Im using the following to parse log times:
%{TIMESTAMP_ISO8601:log_time}
The result looks like this:
"2023-05-16 17:50:49,565"
I have two questions here...i am tryng to convert this value to timestamp to compare it with the ingestion time (.timestamp). The following code is not working for me...
Exception:
function call error for "to_timestamp" at (655:678): No matching timestamp format found for "2023-05-16 17:50:49.565" internal_log_rate_secs=1 vrl_position=716
How would i convert this string to timestamp?
Also, how can i do a diff on two timestamps? i would like to assign .timestamp to .log_time if the difference is more than say a a few minutes.
Beta Was this translation helpful? Give feedback.
All reactions