Re: Manipulating journalctl output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux