Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting Metalog to show messages on VC12?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Fri Mar 19, 2004 1:23 am    Post subject: Getting Metalog to show messages on VC12? Reply with quote

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
View user's profile Send private message
plut0nium
n00b
n00b


Joined: 07 May 2003
Posts: 51
Location: Mons [Belgium]

PostPosted: Wed Apr 07, 2004 6:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Thu Apr 08, 2004 4:22 am    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
plut0nium
n00b
n00b


Joined: 07 May 2003
Posts: 51
Location: Mons [Belgium]

PostPosted: Sun Apr 11, 2004 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Sun Apr 11, 2004 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum