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
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
The journal scrape target scrapes journal logs of all transports (syslog, stdout, etc). For the syslog transport, it's straightforward to parse the timestamps of such journal entries from the SYSLOG_TIMESTAMP field (among others), but stdout lines, there doesn't seem to be any timestamp field. For example, with this promtail configuration:
Describe the solution you'd like
A clear and concise description of what you want to happen.
By my eye, stdout transported journal entries only have timestamps of __REALTIME_TIMESTAMP and __MONOTONIC_TIMESTAMP, but these seem to be excluded from promtail's output. Since these seem to be the only timestamps included with all journal entries, I think it would be useful to include these fields to simplify the parsing of journal output (and accommodate stdout entries).
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I don't see any alternative way to get timestamps for such journal entries if these fields are all the underlying journal data includes.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
The journal scrape target scrapes journal logs of all transports (
syslog
,stdout
, etc). For the syslog transport, it's straightforward to parse the timestamps of such journal entries from theSYSLOG_TIMESTAMP
field (among others), butstdout
lines, there doesn't seem to be any timestamp field. For example, with thispromtail
configuration:And this
promtail
invocation:We get
syslog
andstdout
promtail
output such as:For comparison, here's the respective JSON for those logs straight from
journalctl
:Describe the solution you'd like
A clear and concise description of what you want to happen.
By my eye,
stdout
transported journal entries only have timestamps of__REALTIME_TIMESTAMP
and__MONOTONIC_TIMESTAMP
, but these seem to be excluded frompromtail
's output. Since these seem to be the only timestamps included with all journal entries, I think it would be useful to include these fields to simplify the parsing of journal output (and accommodatestdout
entries).Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I don't see any alternative way to get timestamps for such journal entries if these fields are all the underlying journal data includes.
The text was updated successfully, but these errors were encountered: