Re: Manipulating journalctl output

2014-01-03 Thread Frank Murphy
On Fri, 3 Jan 2014 02:07:13 +0100 Suvayu Ali fatkasuvayu+li...@gmail.com wrote: This is very interesting, I would love to use that. But I don't think I understand how. What do I put in the crontab, how do I send this SIGUSR2 signal to journald? An easier method: /etc/systemd/journald.conf

Re: Manipulating journalctl output

2014-01-03 Thread Suvayu Ali
On Fri, Jan 03, 2014 at 02:01:26AM +, Tom H wrote: On Fri, Jan 3, 2014 at 1:12 AM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Thu, Jan 02, 2014 at 04:52:01PM +, Tom H wrote: On Thu, Jan 2, 2014 at 10:32 AM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Thu, Jan 02,

Re: Manipulating journalctl output

2014-01-03 Thread Tom H
On Fri, Jan 3, 2014 at 3:44 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Fri, Jan 03, 2014 at 02:01:26AM +, Tom H wrote: Via google: http://wiki.gentoo.org/wiki/Rsyslog Thank you Tom. As ever, Gentoo Arch has the best documentation again! You're welcome. They do have excellent

Re: Manipulating journalctl output

2014-01-03 Thread Suvayu Ali
Hi Tony, On Thu, Jan 02, 2014 at 10:16:07PM -0500, Tony Nelson wrote: On 14-01-02 20:12:28, Suvayu Ali wrote: On Thu, Jan 02, 2014 at 04:52:01PM +, Tom H wrote: ... That SYSLOG_FACILITY has to be a number is from systemd.jounal-fields(7). No, I mean which number corresponds to

Re: Manipulating journalctl output

2014-01-03 Thread Tony Nelson
On 14-01-03 15:40:11, Suvayu Ali wrote: Hi Tony, On Thu, Jan 02, 2014 at 10:16:07PM -0500, Tony Nelson wrote: ... From `man 3 syslog`, syslog.h, so `locate syslog` and: /usr/include/sys/syslog.h Indeed, looking at the source is the only way to get this information. It is a bit

Re: Manipulating journalctl output

2014-01-03 Thread Rahul Sundaram
Hi On Fri, Jan 3, 2014 at 3:40 PM, Suvayu Ali wrote: Indeed, looking at the source is the only way to get this information. It is a bit ridiculous I think, all this hoopla about making it easier for the non-technical user, and then the useful docs happen to be in a header file owned by

Re: Manipulating journalctl output

2014-01-02 Thread Mateusz Marzantowicz
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

Re: Manipulating journalctl output

2014-01-02 Thread Suvayu Ali
On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: On Thu, Jan 2, 2014 at 3:00 AM, Tom H tomh0...@gmail.com wrote: On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: 2. I would like to filter logs that typically go into /var/log/secure (or other

Re: Manipulating journalctl output

2014-01-02 Thread Frank Murphy
On Wed, 1 Jan 2014 20:57:38 +0100 Suvayu Ali fatkasuvayu+li...@gmail.com wrote: 1. If your journal size is large, piping to grep is quite a bit slow. http://www.freedesktop.org/software/systemd/man/systemd-journald.service.html SIGUSR2 ## crontab -e weekly rotate (or your preference), help

Re: Manipulating journalctl output

2014-01-02 Thread Tom H
On Thu, Jan 2, 2014 at 10:32 AM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: On Thu, Jan 2, 2014 at 3:00 AM, Tom H tomh0...@gmail.com wrote: On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: 2. I would like

Re: Manipulating journalctl output

2014-01-02 Thread Suvayu Ali
Hi Frank, On Thu, Jan 02, 2014 at 11:15:38AM +, Frank Murphy wrote: On Wed, 1 Jan 2014 20:57:38 +0100 Suvayu Ali fatkasuvayu+li...@gmail.com wrote: 1. If your journal size is large, piping to grep is quite a bit slow.

Re: Manipulating journalctl output

2014-01-02 Thread Suvayu Ali
On Thu, Jan 02, 2014 at 04:52:01PM +, Tom H wrote: On Thu, Jan 2, 2014 at 10:32 AM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: On Thu, Jan 2, 2014 at 3:00 AM, Tom H tomh0...@gmail.com wrote: On Wed, Jan 1, 2014 at 7:57 PM,

Re: Manipulating journalctl output

2014-01-02 Thread Tom H
On Fri, Jan 3, 2014 at 1:12 AM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Thu, Jan 02, 2014 at 04:52:01PM +, Tom H wrote: On Thu, Jan 2, 2014 at 10:32 AM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: On Thu, Jan 2, 2014 at

Re: Manipulating journalctl output

2014-01-02 Thread Tony Nelson
On 14-01-02 20:12:28, Suvayu Ali wrote: On Thu, Jan 02, 2014 at 04:52:01PM +, Tom H wrote: ... That SYSLOG_FACILITY has to be a number is from systemd.jounal-fields(7). No, I mean which number corresponds to what facility. I don't even know where to find a comprehensive list of all

Re: Manipulating journalctl output

2014-01-01 Thread Mateusz Marzantowicz
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

Re: Manipulating journalctl output

2014-01-01 Thread Suvayu Ali
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

Re: Manipulating journalctl output

2014-01-01 Thread Tom H
On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: 2. I would like to filter logs that typically go into /var/log/secure (or other similar files); how do I do that? SYSLOG_FACILITY=authpriv -- users mailing list users@lists.fedoraproject.org To unsubscribe or

Re: Manipulating journalctl output

2014-01-01 Thread Tom H
On Thu, Jan 2, 2014 at 3:00 AM, Tom H tomh0...@gmail.com wrote: On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: 2. I would like to filter logs that typically go into /var/log/secure (or other similar files); how do I do that? SYSLOG_FACILITY=authpriv