View previous topic :: View next topic |
Author |
Message |
vicay Tux's lil' helper
Joined: 29 Apr 2002 Posts: 97 Location: Dresden, Germany
|
Posted: Fri May 03, 2002 7:46 am Post subject: metalog issues |
|
|
i have a metalog as syslogd/klogd replacement running on
my gentoo-box. I really like the metalog system - well designed
and works fine too - no need for slow cron-scripts doing the
logfilerotation anymore. But how can i direct logdata to a console?
I really would like to see the data from /var/log/everything/current
on my /dev/vc/10. Is there a good way how this can be accomplished?
TIA
vicay |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Sat May 04, 2002 1:22 pm Post subject: |
|
|
Quote: |
If you want to watch activity in real-time (like a good old "tail -f" on a
log file), you can temporary disable buffering. Just send an USR1 signal to
the "MASTER" process. You can re-enable buffering afterwards, by sending an
USR2 signal. |
Quote: | - '-c <xxx>' or '--consolelevel=<xxx>' : set the console log level on
Linux. Valid values are from 0 to 7. The default is 7. |
_________________ This message self destructed a long time ago. |
|
Back to top |
|
|
vicay Tux's lil' helper
Joined: 29 Apr 2002 Posts: 97 Location: Dresden, Germany
|
Posted: Sat May 04, 2002 8:47 pm Post subject: |
|
|
AutoBot wrote: | Quote: |
If you want to watch activity in real-time (like a good old "tail -f" on a
log file), you can temporary disable buffering. Just send an USR1 signal to
the "MASTER" process. You can re-enable buffering afterwards, by sending an
USR2 signal. |
Quote: | - '-c <xxx>' or '--consolelevel=<xxx>' : set the console log level on
Linux. Valid values are from 0 to 7. The default is 7. |
|
Hello,
ok, the USR1 signal disables the buffering, got that
but what is meant by the console loglevel? Is it the message priority
from (DEBUG to PANIC)?. How can i tell the metalog to use
a certain console for logging? (using a tail on the "current" file is no
good idea, when logfiles get rotated...)
vicay |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Mon May 06, 2002 12:05 am Post subject: |
|
|
I have to re-install gentoo as something I had no control over happened so I cant test this, but I assume if you changed the value to say:
That you can redirect the output of Metalog to a console your running in x by initiating the proper command. _________________ This message self destructed a long time ago. |
|
Back to top |
|
|
Abandon n00b
Joined: 18 May 2002 Posts: 33 Location: Madison, WI
|
Posted: Fri Jun 14, 2002 12:39 am Post subject: |
|
|
I was looking into the same issue and found the following page that gives instruction for doing what we're looking for. I have yet to try it but thought I'd post it for those who are interested.
http://hints.linuxfromscratch.org/hints/metalog.txt |
|
Back to top |
|
|
choi65 n00b
Joined: 30 May 2002 Posts: 15 Location: Germany
|
Posted: Fri Jun 14, 2002 2:31 am Post subject: question |
|
|
Hi,
sorry, i wanna know, what's especially good in metalog in comparison with the others, syslog-ng or syslog |
|
Back to top |
|
|
Abandon n00b
Joined: 18 May 2002 Posts: 33 Location: Madison, WI
|
Posted: Fri Jun 14, 2002 10:49 am Post subject: |
|
|
I had no experience with any of the loggers beyond syslog and choose randomly from the list mentioned in the Gentoo x86 install guide. Since using it I would have to say I like the configuration system for it. But for someone who frequently installs new software or needs to frequently do debugging the buffering of log output is more of a pain than it's worth. I leave that disabled most of the time. |
|
Back to top |
|
|
Hellfire n00b
Joined: 09 May 2002 Posts: 54 Location: Madison, WI
|
Posted: Fri Jun 14, 2002 2:01 pm Post subject: |
|
|
in /etc/conf.d/metalog
"Add -s if you don't want buffering"
Do that and the output to the log files will be written as expected via old-school syslog.
As for metalog - I love it. Being able to set regex/program filtering in the conf is amazingly keen and easy.
`man metalog.conf`
`man metalog`
After perusing that I'm completely sold on the product...
-h |
|
Back to top |
|
|
|