View previous topic :: View next topic |
Author |
Message |
Skotlex Guru
Joined: 13 Mar 2004 Posts: 306
|
Posted: Fri Mar 19, 2004 1:23 am Post subject: Getting Metalog to show messages on VC12? |
|
|
I recently changed from syslog-ng to metalog (syslog-ng started oopsing on me... and I never really liked the massive size of log files it has, I much prefer the way metalog handles log files), but I am already starting to miss the log output that syslog-ng would place on vc12. I checked the metalog.conf file and at the very end it has...
Code: |
#Uncomment and adjust the following lines to
#your needs to enable console logging
#
# Hint: you can change the device to which
# should be logged in /usr/sbin/consolelog.sh
#
#console logging :
#
facility = "*"
command = "/usr/sbin/consolelog.sh"
|
I modified the consolelog.sh script so that it would output messages to vc12 and not vc10. The problem is... I don't see anything on vc12 after restarting the machine. I can use the consolelog script and it works (shows what I sent as arguments on vc12), but metalog is not placing any of it's messages there... what else could I be missing? By the way, /etc/conf.d/metalog says that now by default metalog runs in synchronic mode, so I should expect "real-time" output of the log messages ... |
|
Back to top |
|
|
plut0nium n00b
Joined: 07 May 2003 Posts: 51 Location: Mons [Belgium]
|
Posted: Wed Apr 07, 2004 6:17 pm Post subject: |
|
|
i have exactly the same prblem... if someone can help us... _________________ "Without evil there can be no good so it must be good to be evil sometimes..."
site | blog | ... |
|
Back to top |
|
|
Skotlex Guru
Joined: 13 Mar 2004 Posts: 306
|
Posted: Thu Apr 08, 2004 4:22 am Post subject: |
|
|
I thought this thread was all but forgotten... and indeed it was, someone else with the same problem bumped into it ^.^o
After being reminded of the problem, I decided to go try something... I remember reading in the metalog documentation, that you could specify both a command and a logdir for any such event... so in the section of the metalog.conf file that had:
Code: |
Everything:
facility = "*"
minimum = 6
logdir = "/var/log/everything"
|
I just added a command line:
Code: |
Everything:
facility = "*"
minimum = 6
command = "/usr/sbin/consolelog.sh"
logdir = "/var/log/everything"
|
And guess... now it works |
|
Back to top |
|
|
plut0nium n00b
Joined: 07 May 2003 Posts: 51 Location: Mons [Belgium]
|
Posted: Sun Apr 11, 2004 7:59 am Post subject: |
|
|
Thanks a lot...
i found another way to get it working, just add "minimum = 6" (or the level you want) at the end of metalog.conf:
Code: |
#Uncomment and adjust the following lines to
#your needs to enable console logging
#
# Hint: you can change the device to which
# should be logged in /usr/sbin/consolelog.sh
#
#console logging :
#
facility = "*"
minimum = 6
command = "/usr/sbin/consolelog.sh"
|
_________________ "Without evil there can be no good so it must be good to be evil sometimes..."
site | blog | ... |
|
Back to top |
|
|
Skotlex Guru
Joined: 13 Mar 2004 Posts: 306
|
Posted: Sun Apr 11, 2004 7:00 pm Post subject: |
|
|
Really? That's odd, the documentation (on the website, why it is not included in metalog's man page?) doesn't says you NEED that line there (the default if unspecified is "minimum = 7"), this must be a bug in Metalog. I'll see if I go report it to the project. |
|
Back to top |
|
|
|