I check service status with systemctl status service-name
.
By default, I see few rows only, so I add -n50
to see more.
Sometimes, I want to see full log, from start. It could have 1000s of rows.
Now, I check it with -n10000
but that doesn't look like neat solution.
Is there an option to check full systemd service log similar to less
command?
--no-pager
will print full log, so you wont have to scroll – Dushyant Bangal May 29 '17 at 11:41-e
will start the log at the end removing the need to scroll, but without printing the entire log beforehand. – timlyo Jul 28 '17 at 14:45-f
will follow (print) updates to the log – Joe J Sep 06 '17 at 17:10--help
will let you see all available options – Tzafrir Mar 26 '18 at 20:14journalctl
to access them. – larsks Apr 11 '19 at 11:43https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html
– viveksinghggits Apr 11 '19 at 11:58sudo systemctl -n 99999 status
gives me that, but apparently journalctl can only filter "from boot", not "from service start". – tobixen Jun 26 '19 at 04:57--no-pager
will allow it to be piped? (say, togrep
?) – DarthCadeus Nov 07 '19 at 14:10--no-pager
is not necessary when piping the output. It's only useful to disable the pager when output is to an interactive terminal.journalctl
does not use a pager when you're piping the output to something else. – larsks Nov 07 '19 at 14:12-u
) and thus combine the log of multiple services. – rugk Jul 28 '20 at 12:32shift-g
to jump to the end of file inless
or similar pagers. – Matthias Sep 03 '20 at 22:14-o cat
will remove systemd log text processing so you can see the output as the process produced it. – fuzzyTew Jun 30 '21 at 10:11journalctl UNIT=foobar.service
thinking like me that it's the same asjournalctl -u foobar.service
, because it's not! WithUNIT=
sudo commands coming from a custom script are not listed; they are displayed with-u
. – 4wk_ Jan 19 '22 at 16:28-- No entries --
– Alecz Sep 14 '22 at 17:18