I have a user unit running, that is currently failing. I want to know when it started failed, so I'm checking its logs with
journalctl --user -u pycardsyncer.service
However, this is only giving me the logs from the last four hours. Is there a way to get logs from prior to this?
Further, I sometimes see logs with the following:
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Where have these been "rotated" to?
/var/log/journal/[machine-id]/*.journal
, but they only contained the data as per my question; they didn't go back further than that. (I had nothing at/run/log/journal
.) FWIW myuptime
is 3 days, but these logs seem to go back only ~5 hours. – Sparhawk Jun 07 '16 at 11:31/etc/systemd/journald.conf
to see what's configured? – Centimane Jun 08 '16 at 11:22SystemMaxUse
orRuntimeMaxUse
. If that happens the default values will still cause it to be rotated. What is the size of your HD? – Centimane Jun 08 '16 at 11:39SystemMaxUse=50M
. Indeed,/var/log/journal/[machine-id]
contains 69M. Thanks for pointing me in the right direction. If you add this information to your answer, I'll accept it. (Please reply here when you've done it.) Cheers! – Sparhawk Jun 09 '16 at 00:07