journalctl
Topic: System and services
Program: journalctl
Shows the entries of the system journal.
Package: log
Usage
journalctl [OPTION]...
Description
Show the entries of the system journal, oldest first. Without permission to read the whole journal only your own entries. Filters work together: -u UNIT, -p PRIORITY (or FROM..TO), -k (kernel), -b [N] (boot), -S/--since and -U/--until TIME. -n [N] shows the last N (10), -r the newest first, -q no notice, -e starts at the end, --no-pager, --list-boots.
Options in the simulator
-
-h, --help show this help and exitThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
67 more options of the real program, not in the simulator yet
-
--systemnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--usernot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-M, --machineneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-m, --mergenot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-D, --directoryneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-i, --fileneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--rootneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--imageneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--image-policyneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--namespaceneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-S, --sinceneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-U, --untilneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-c, --cursorneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--after-cursorneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--cursor-fileneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-b, --bootvalue optional not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-u, --unitneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--user-unitneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--invocationneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-Inot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-t, --identifierneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-T, --exclude-identifierneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-p, --priorityneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--facilityneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-g, --grepneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--case-sensitivevalue optional not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-k, --dmesgnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-o, --outputneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--output-fieldsneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-n, --linesvalue optional not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-r, --reversenot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--show-cursornot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--utcnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-x, --catalognot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--no-hostnamenot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--no-fullnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-a, --allnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-f, --follownot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--no-tailnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--truncate-newlinenot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-q, --quietnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--no-pagernot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-e, --pager-endnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--intervalneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--verify-keyneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--forcenot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--versionnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-N, --fieldsnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
-F, --fieldneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--list-bootsnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--list-invocationsnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--list-namespacesnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--disk-usagenot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--vacuum-sizeneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--vacuum-filesneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--vacuum-timeneeds a value not in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--verifynot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--syncnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--relinquish-varnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--smart-relinquish-varnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--flushnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--rotatenot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--headernot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--list-catalognot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--dump-catalognot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--update-catalognot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
-
--setup-keysnot in the simulator yetThe option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.
Examples
$ journalctl -k -p err --no-pager
Oct 17 03:12:07 web-01 kernel: Out of memory: Killed process 4711 (python3) total-vm:7864320kB, anon-rss:6291456kB, file-rss:1024kB, shmem-rss:0kB, UID:998 pgtables:13000kB oom_score_adj:0 $ journalctl -u cron -n 6
Oct 17 09:15:01 web-01 CRON[7378]: pam_unix(cron:session): session opened for user lerner(uid=1000) by lerner(uid=0)
Oct 17 09:15:01 web-01 CRON[7379]: (lerner) CMD (/home/lerner/bin/check-disk.sh)
Oct 17 09:15:01 web-01 CRON[7378]: pam_unix(cron:session): session closed for user lerner
Oct 17 09:17:01 web-01 CRON[7385]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
Oct 17 09:17:01 web-01 CRON[7386]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Oct 17 09:17:01 web-01 CRON[7385]: pam_unix(cron:session): session closed for user root Where you learn it
Lessons
- Who eats the memory Linux Basics, Module 7: Memory and performance
- Schedules, logs and packages Linux Basics, Module 10: Sysadmin everyday