View journalctl without Paging
To send your logs to standard output and avoid paging them, use
the --no-pager option:
journalctl --no-pager
It's not recommended that you do this without first filtering down
the number of logs shown.
journalctl -u service-name.service︙
Show Logs within a Time Range
Use the --since option to show logs after a specified date and
time:
journalctl --since "2018-08-30 14:10:10"
Use the --until option to show logs up to a specified date and time:
journalctl --until "2018-09-02 12:05:50"
Combine these to show logs between the two times:
journalctl --since "2018-08-30 14:10:10" --until "2018-09-02 12:05:50"
Content is shamelessly copied from:
https://unix.stackexchange.com/questions/225401
/how-to-see-full-log-from-systemctl-status-service
from the answer by: https://unix.stackexchange.com/users/119298
/jeff-schaller
for purpose of documenting future reference assuming the original
content may be removed or altered.
References:
https://www.linode.com/docs/guides/how-to-use-journalctl
No comments:
Post a Comment