On 02.01.2014 00:08, Suvayu Ali wrote: > On Wed, Jan 01, 2014 at 11:52:04PM +0100, Mateusz Marzantowicz wrote: >> 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. > > Actually, if I'm in the systemd-journal group it is equivalent. That > said, I get the same output as root. I use bash-completion, and the > .service is optional when used with -u (as I mentioned in my email). I > tried with and without the .service. It works both ways for sendmail, > just not crond. > > Cheers, > OK, so it might be something else (maybe cron not producing log messages?) I know it doesn't help much but in my case - it works - and I get plenty of crond messages. I don't have sendmail installed so I have no associated log messages. Mateusz Marzantowicz -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org