Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng log same info in all files???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 511

PostPosted: Sat Sep 20, 2003 1:28 pm    Post subject: syslog-ng log same info in all files??? Reply with quote

Hi,
I have syslog-ng installed and now noticed logfiles got quite big so I installed logrotate and it works al fine. But at the same time I notice syslog-ng log the same info to all logfiles. It can't be the intent...? I basicly have the default Gentoo config file for syslog-ng with 2 additions as follow:
Code:
# $Header: /home/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo,v 1.2 2003/03/11 13:37:04 agriffis Exp $
#
# Syslog-ng default configuration file for Gentoo Linux
# contributed by Michael Sterrett
#

options {
        long_hostnames(off);
        sync(0);

        # The default action of syslog-ng 1.6.0 is to log a STATS line
        # to the file every 10 minutes.  That's pretty ugly after a while.
        # Change it to every 12 hours so you get a nice daily update of
        # how many messages syslog-ng missed (0).
        stats(43200);
};

source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
destination authlog { file("/var/log/auth.log"); };
destination cron { file("/var/log/cron.log"); };

destination mail { file("/var/log/mail.log"); };

destination mailinfo { file("/var/log/mail.info"); };
destination mailwarn { file("/var/log/mail.warn"); };
destination mailerr { file("/var/log/mail.err"); };

destination messages { file("/var/log/messages"); };
# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
#destination console_all { file("/dev/console"); };
log { source(src); destination(authlog); };
log { source(src); destination(cron); };
log { source(src); destination(mail); };
log { source(src); destination(mailinfo); };
log { source(src); destination(mailwarn); };
log { source(src); destination(mailerr); };
log { source(src); destination(messages); };
log { source(src); destination(console_all); };


I thought the intention with this was to split different into into the file related to it except for messages maybe? But appearanty not so what am I missing?
_________________
/Joakim

Living on earth is expensive, but it includes a free trip around the sun
every year.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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