Hi, I've installed syslog-ng and it is working fine. There's just one remaining problem I can't solve: I use monit, which is started from inittab. Logs go to the file I defined. But they also go to the console (tty1). I tried to remove all syslog-ng entries sending logs to usertty (alert and emerg) and restart, but it didn't change anything. So the problem must be that init logs are different from other logs. Is it possible for syslog-ng to intercept logs sent by init to the console ? ------------------------------------------ Faites un voeu et puis Voila ! www.voila.fr
Hi All! On 2003 May 08, arthur.chereau wrote:
usertty (alert and emerg) and restart, but it didn't change anything. So the problem must be that init logs are different from other logs.
No, there are no differences. But if a program try to send a log message and /dev/log is not opened by syslog daemon, the program send it to the console. You can try it, if you stop syslog-ng and wait for log messages.
Is it possible for syslog-ng to intercept logs sent by init to the console ?
Yes, if you start syslog-ng earlyer than the program. In RedHat there are a tiny syslog daemon, that doesn't do anything except collecting log messages till real syslog daemon doesn't start. -- PGP ID 0x8D143771, /C5 95 43 F8 6F 19 E8 29 53 5E 96 61 05 63 42 D0 GPG ID ABA0E8B2, 45CF B559 8281 8091 8469 CACD DB71 AEFC ABA0 E8B2 Szeretem a Zsanit - SaSa
On Thu, May 08, 2003 at 12:09:22AM +0200, arthur.chereau wrote:
Hi,
I've installed syslog-ng and it is working fine. There's just one remaining problem I can't solve:
I use monit, which is started from inittab. Logs go to the file I defined. But they also go to the console (tty1). I tried to remove all syslog-ng entries sending logs to usertty (alert and emerg) and restart, but it didn't change anything. So the problem must be that init logs are different from other logs.
Is it possible for syslog-ng to intercept logs sent by init to the console ?
if they are kernel logs, then you need dmesg -n1 to stop the kernel to write logs to the console. If they are init logs, and init definitely writes those to the console then you have no way to intercept those logs. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (3)
-
arthur.chereau
-
Balazs Scheidler
-
SZALAY Attila