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 g

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`, , 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 r

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 c

Re: Manipulating journalctl output

2014-01-03 Thread Tom H
On Fri, Jan 3, 2014 at 3:44 PM, Suvayu Ali 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 documentation! But

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 > wrote: > > On Thu, Jan 02, 2014 at 04:52:01PM +, Tom H wrote: > >> On Thu, Jan 2, 2014 at 10:32 AM, Suvayu Ali > >> wrote: > >>> On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: > >>>

Re: Manipulating journalctl output

2014-01-03 Thread Frank Murphy
On Fri, 3 Jan 2014 02:07:13 +0100 Suvayu Ali 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 MaxFileSec=1week # what

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

Re: Manipulating journalctl output

2014-01-02 Thread Tom H
On Fri, Jan 3, 2014 at 1:12 AM, Suvayu Ali wrote: > On Thu, Jan 02, 2014 at 04:52:01PM +, Tom H wrote: >> On Thu, Jan 2, 2014 at 10:32 AM, Suvayu Ali >> wrote: >>> On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: On Thu, Jan 2, 2014 at 3:00 AM, Tom H wrote: > On Wed, Jan 1, 2

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 > wrote: > > On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: > >> On Thu, Jan 2, 2014 at 3:00 AM, Tom H wrote: > >>> On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali > >>> wrote: > >

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 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

Re: Manipulating journalctl output

2014-01-02 Thread Tom H
On Thu, Jan 2, 2014 at 10:32 AM, Suvayu Ali wrote: > On Thu, Jan 02, 2014 at 03:20:38AM +, Tom H wrote: >> On Thu, Jan 2, 2014 at 3:00 AM, Tom H wrote: >>> On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali >>> wrote: 2. I would like to filter logs that typically go into /var/log/secure >

Re: Manipulating journalctl output

2014-01-02 Thread Frank Murphy
On Wed, 1 Jan 2014 20:57:38 +0100 Suvayu Ali 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 keep it manageable ___ Regar

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 wrote: > > On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali > > wrote: > >> > >> 2. I would like to filter logs that typically go into /var/log/secure > >>(or other similar files); how do I do that? > >

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: >>>

Re: Manipulating journalctl output

2014-01-01 Thread Tom H
On Thu, Jan 2, 2014 at 3:00 AM, Tom H wrote: > On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali > 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 Sorry. Just thought that I'd try it and i

Re: Manipulating journalctl output

2014-01-01 Thread Tom H
On Wed, Jan 1, 2014 at 7:57 PM, Suvayu Ali 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 change subscription options:

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

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:

Manipulating journalctl output

2014-01-01 Thread Suvayu Ali
Hi, Lately I have been facing a lot of difficulty trying to get the information I want easily using journalctl. I find the manpage of limited use; as in, it has the basic information but the more advanced information is scattered in several manpages and the text is littered with jargon more appro