Manipulating journalctl output
Mateusz Marzantowicz
mmarzantowicz at osdf.com.pl
Wed Jan 1 22:52:04 UTC 2014
On 01.01.2014 20:57, Suvayu Ali wrote:
> Now my questions:
>
> 1. How can I filter messages printed to the logs from my cron jobs? I
> will try to explain by example:
>
> $ journalctl -ru crond --since=-3d
> -- Logs begin at Sun 2013-11-17 02:48:46 CET, end at Wed 2014-01-01 20:31:27 CET. --
# journalctl -u crond.service
Do it as root, and add .service suffix to crond.
Bash completion is your friend here, hitting TAB twice after -u option
will give you units that are recognized.
journalctl is user-aware and show only what's appropriate.
Mateusz Marzantowicz
More information about the users
mailing list