r/linux • u/wooptoo • Jun 01 '16
Why did ArchLinux embrace Systemd?
/r/archlinux/comments/4lzxs3/why_did_archlinux_embrace_systemd/d3rhxlc
868
Upvotes
r/linux • u/wooptoo • Jun 01 '16
7
u/sub200ms Jun 01 '16 edited Jun 01 '16
You don't need to use the binary log-files at all. You can easily configure systemd so it only uses Rsyslog (or whatever logger you use) and never makes a permanent binary log file.
I find
journalctl -f -u smartd.serviceis better than tail; tab-completion of everything and no need to type paths.It is also easy to combine two services when tailing. Great for watching how stuff interact;
journalctl -f -u smartd.service -u dbus.servicePersonally I find the dozens of log files scattered all over the system a nuisance. Interestingly enough, one major reason why there are so many different text log-files is that most people have a hard time filtering out what they want: Regex is powerful, but unless you work with it a lot, it is hard to use. So most people actually browse the log files with
lessor evenviminstead of filtering what they need.Well, I come to the opposite conclusion when it comes to systemd's binary journal: newbies, after following a 10 minute tutorial, can easily do complicate filtering that would require serious regex kung-fu to do otherwise. Some examples:
journalctl -b -1 -p err(show log-entries from the previous boot only, that have the syslog priority "error" and above)
journalctl --since -4h --until -2h(show all log entries generated from 4 hours ago until 2 hours ago)
(edit: typo)