I am using rsyslog
, and I want to send logs to /dev/xconsole
.
I have following relevant line in /etc/rsyslog.conf
*.*;cron.!=info;mail.!=info |/dev/xconsole
This works only partially. It looks as if /dev/xconsole
can only store cca 64kB. Once the buffer is full, new logs are lost
I have done following test:
1) add to `/etc/rsyslog.conf`
*.*;cron.!=info;mail.!=info /tmp/aaa
2) reboot
3) cat /dev/xconsole > /tmp/bbb
4) diff /tmp/aaa /tmp/bbb
Now, aaa and bbb should be the same. But they are not. aaa contains complete logs, while bbb is missing 229 last lines
How can I fix this problem?
Is the size of /dev/xconsole
indeed limited ?
Can I increase the size?
/dev/xconsole
from the moment you start logging. You need to start thatcat /dev/xconsole
before you start rsyslogd./dev/xconsole
to 128 KB ?