3 ms·
It's even simpler today with systemd, you can write stuff like: journalctl -u nginx --since yesterday
by wdroz 7y ago
It's even simpler today with systemd, you can write stuff like:
journalctl -u nginx --since yesterday
- kjs3 7y agoThat's not simpler than 'cat /var/log/messages' or the equivalent, if for no other reason than you still need something to digest/summarize the output. It's just different, mostly for the sake of being different, but I'll not bait the systemd fanbois any farther.
- wdroz 7y agoIt's simpler in the sense that journalctl already provides some filter options that you no longer need to build yourself. There are a lot of people that use OS with systemd, but only a small part know about journalctl. I took this opportunity to spread this information.
- kjs3 7y agoThe bastard in me wants to say "once again systemd and its ecosystem reinvent something that the Unix Way already solved decades ago, just in a different way". But in reality, thanks for the tip. I used your example today to look into an issue I'd have otherwise been cussing "where's the damn logs!".