Hi Matthew,

The configuration is:
*.emerg                                -/var/log/messages
                                        & |/dev/xconsole

but I get the following error when restart the rsyslog:
rsyslogd-2039: Could not open output pipe '/dev/xconsole'

There are other ideia for it?


Thanks



________________________________
 De: G. Matthew Rice <[email protected]>
Para: Cilmar dos Santos Oliveira <[email protected]>; General 
discussion relating to LPI. <[email protected]> 
Enviadas: Quarta-feira, 30 de Janeiro de 2013 15:29
Assunto: Re: [lpi-discuss] Ubuntu logs
 
On Wed, Jan 30, 2013 at 10:38 AM, Cilmar dos Santos Oliveira
<[email protected]> wrote:
> kern.*                          -/var/log/messages #(here I would like
> include the xconsole for the kern parameter)
>
> I cant remember if I use the pipe " | " or another separetor for it. Can
> someone help?

Hi Cilmar,

According to the rsyslog docs (hint, hint ;)), you need to put the
second action on the next line and precede it with an ampersand (&).

You'll also need the pipe (|) (not a separator; it's for writing to
FIFOs) with /dev/xconsole for it to work.  Something like:

       kern.*   -/var/log/message,
            & |/dev/xconsole

Also, for Ubuntu (I just tested this on my Ubuntu install), you may
have to create /dev/xconsole before using the xconsole command:

    https://lists.ubuntu.com/archives/ubuntu-sponsors/2010-April/000338.html

I did on Ubuntu 11.10.

HTH,
--
G. Matthew Rice <[email protected]>                         gpg id: EF9AAD20
_______________________________________________
lpi-discuss mailing list
[email protected]
http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-discuss

Reply via email to