#TIL #journalctl has a short-delta output (since version 252, Ubuntu 24.04 Noble is the first Ubuntu LTS shipping that), that shows the time difference to the previous entry.
And yes, this does the right thing when combined with --grep.
#TIL #journalctl has a short-delta output (since version 252, Ubuntu 24.04 Noble is the first Ubuntu LTS shipping that), that shows the time difference to the previous entry.
And yes, this does the right thing when combined with --grep.
@pid_eins I see it also provides the monotonic timestamp. I think it would be even better if it includes the wall clock time instead (but the time delta still based on monotonic). For correlating client-server logs. So I (the client-dev) can say to the server-dev: at 15:03, I see my client sent five request, 100ms apart.
(I am fully aware monotonic also has its usecase when debugging device boot. So maybe short-delta-wallclock?)
@bartavi another time + grep fun option is
journalctl --since "30 minutes ago" --grep something
and of course
journalctl -b --grep something
@bartavi another time + grep fun option is
journalctl --since "30 minutes ago" --grep something
and of course
journalctl -b --grep something
@bartavi another time + grep fun option is
journalctl --since "30 minutes ago" --grep something
and of course
journalctl -b --grep something