You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to confirm that my timestamppipeline_stage is working correctly in dry-run mode, before I run promtail "for-real" and send the logs into my Loki instance (because I don't want to sent bad data into Loki).
But dry-run mode only shows whole seconds for the timestamp for each log-line, so I can only confirm that it's working to the nearest second.
Possibly switch to tsNs in this output more, or simply add decimals when present?
1625253244569975100 {filename=…
Or
2021-07-02T20:14:04.5699751 {filename=…
Alternatives
Maybe simply a flag which could be enabled, in order to add this additional output to the timestamp, if you don't want to make this change permanent for all users (as it could make the output less well aligned and harder to read in some cases I guess).
Additional context
The sub-second fractions are indeed being handled correctly by promtail and Loki - see:
The text was updated successfully, but these errors were encountered:
Problem
I want to confirm that my
timestamp
pipeline_stage
is working correctly indry-run
mode, before I run promtail "for-real" and send the logs into my Loki instance (because I don't want to sent bad data into Loki).But
dry-run
mode only shows whole seconds for the timestamp for each log-line, so I can only confirm that it's working to the nearest second.Example log lines used for testing this:
Pipeline stage:
Output from
promtail -dry-run
:(or in colour)
Solution
Possibly switch to tsNs in this output more, or simply add decimals when present?
Or
Alternatives
Maybe simply a flag which could be enabled, in order to add this additional output to the timestamp, if you don't want to make this change permanent for all users (as it could make the output less well aligned and harder to read in some cases I guess).
Additional context
The sub-second fractions are indeed being handled correctly by promtail and Loki - see:
The text was updated successfully, but these errors were encountered: