Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing System Loggers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Tue Nov 04, 2003 10:53 pm    Post subject: Changing System Loggers Reply with quote

I recently had a headache when I wanted to stop using metalog and start using another. It seemed that even though I "unmerged" metalog, the system still wouldn't let go of it. Things like vcron were still depending on it.

This list was posted to the gentoo user list in May 2003. Turned out to be just what I needed.
Code:
/etc/init.d/metalog stop

emerge unmerge metalog

rm -rf /mnt/.init.d/need/metalog

rm -rf /etc/metalog

rm -rf /etc/init.d/metalog

rc-update del metalog

emerge syslog-ng

rc-update add syslog-ng default

mkdir /var/log/metalog

mv /var/log/* /var/log/metalog

/etc/init.d/syslog-ng start


Obviously substitute syslog-ng with whatever other logger you may prefer.

When you stopped metalog, your system logger probably stopped as well, so remember to start your system logger again (mine is vcron):

Code:
/etc/init.d/vcron start


[edit] changed to default runlevel as per install instructions
[edit 2004/02/18] forgot to take metalog out of rc-update


Last edited by rizzo on Thu Feb 19, 2004 3:22 am; edited 3 times in total
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Tue Nov 04, 2003 10:57 pm    Post subject: Reply with quote

Heh, I'll take the credit for archiving that email and sending it to rizzo when he asked. =)
Back to top
View user's profile Send private message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Tue Nov 04, 2003 11:59 pm    Post subject: Reply with quote

i always added my logger to the default runlevel... :?
_________________
Pop-before-SMTP with the Gentoo Virtual Mailhosting Guide
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6759
Location: Blighty

PostPosted: Wed Nov 05, 2003 12:57 pm    Post subject: Reply with quote

Why shouldn't the logger be loaded at boot? :?:
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Wed Nov 05, 2003 6:48 pm    Post subject: Reply with quote

Nothing is to say that it can't be in boot, but I just wanted to be consistent with the install instructions.
Back to top
View user's profile Send private message
ChianasGeek
n00b
n00b


Joined: 13 Nov 2004
Posts: 45
Location: United Kingdom

PostPosted: Fri Dec 17, 2004 9:52 am    Post subject: Re: Changing System Loggers Reply with quote

Hi... I just changed successfully from metalog to syslog-ng using your info. Seems smooth :D

The only thing is:

rizzo wrote:

Code:
rm -rf /mnt/.init.d/need/metalog



My Gentoo doesn't have /mnt/.init.d/ :?
_________________
Chiana's Geek :)
"We are Grey. We stand between the candle and the star."
(Backup Jabber ID: chianasgeek@xmpp.org.uk)
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Dec 17, 2004 6:42 pm    Post subject: Reply with quote

Curiosity - why move away from metalog?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
gentoo_lan
l33t
l33t


Joined: 08 Sep 2004
Posts: 890
Location: Charles Town, WV

PostPosted: Fri Dec 17, 2004 11:16 pm    Post subject: Re: Changing System Loggers Reply with quote

GreyOrlando wrote:
Hi... I just changed successfully from metalog to syslog-ng using your info. Seems smooth :D

The only thing is:

rizzo wrote:

Code:
rm -rf /mnt/.init.d/need/metalog



My Gentoo doesn't have /mnt/.init.d/ :?


Code:
rm -rf /etc/init.d/metalog


You shouldn't need to remove /mnt/init.d/need/metalog since it doesn't exist.
Back to top
View user's profile Send private message
Ox-
Guru
Guru


Joined: 19 Jun 2003
Posts: 305

PostPosted: Sat Dec 18, 2004 3:54 am    Post subject: Reply with quote

Trevoke wrote:
Curiosity - why move away from metalog?
Well, speaking for myself, I've been happily running metalog on 6 production servers for quite a while, but recently decided to try out fwlogwatch to analyze log output from iptables. Discovered it can't read metalog output, and I haven't been able to find any other log analyzers that can (admittedly I only spent a few minutes searching though :)) So, I've just got to decide which is quicker: hacking fwlogwatch to read metalog, or switch to another logger. This guide makes the switch choice a little easier.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Sat Dec 18, 2004 1:11 pm    Post subject: Reply with quote

I had that same problem... but I dumped fwlogwatch instead :-D
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
ChianasGeek
n00b
n00b


Joined: 13 Nov 2004
Posts: 45
Location: United Kingdom

PostPosted: Sat Dec 18, 2004 1:50 pm    Post subject: Re: Changing System Loggers Reply with quote

gentoo_lan wrote:
GreyOrlando wrote:

My Gentoo doesn't have /mnt/.init.d/ :?


Code:
rm -rf /etc/init.d/metalog


You shouldn't need to remove /mnt/init.d/need/metalog since it doesn't exist.


Yeah, that's what I settled for... I was just curious what the whole /mnt/.init.d/ is for. Searching for info hasn't come up with much.
_________________
Chiana's Geek :)
"We are Grey. We stand between the candle and the star."
(Backup Jabber ID: chianasgeek@xmpp.org.uk)
Back to top
View user's profile Send private message
Ox-
Guru
Guru


Joined: 19 Jun 2003
Posts: 305

PostPosted: Sun Dec 19, 2004 8:53 am    Post subject: Reply with quote

mirko_3 wrote:
I had that same problem... but I dumped fwlogwatch instead :-D

So you're scanning the logs manually now? :lol:
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Sun Dec 19, 2004 11:29 am    Post subject: Reply with quote

Syslog-ng didn't show the kernel logs for me, so i started using sysklod.
_________________
We are not alone.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Sun Dec 19, 2004 1:29 pm    Post subject: Reply with quote

Ox- wrote:
mirko_3 wrote:
I had that same problem... but I dumped fwlogwatch instead :-D

So you're scanning the logs manually now? :lol:


As far as the firewall logs... I don't scan them at all :oops:
The other logs (system, ecc) are printed on my background, so I get to see them even too much!
Anyway, new log parsers have emerge since I last looked at it.. if I find one that works with metalog, I'll post back.
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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