Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-user] Syslog-NG logging same output to mail.info &..

 
   Soft32 Home -> Linux -> User RSS
Next:  [gentoo-user] Emerge -u system or World ?  
Author Message
Mal Herring

External


Since: Jul 16, 2004
Posts: 22



(Msg. 1) Posted: Mon Jul 26, 2004 6:10 pm
Post subject: [gentoo-user] Syslog-NG logging same output to mail.info & mail.log
Archived from groups: linux>gentoo>user (more info?)

Hey list,
Maybe someone could gimme a quick hand, below is my syslog-ng.conf file,
if I remove the destination, filter and log commands for the mail.info -
will this cure my problem ?

Thanks in advance.

Mal

Syslog-ng.conf file below :

---------------------------------------

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

#source where to read log
source src { unix-stream("/dev/log"); internal(); };
source kernsrc { file("/proc/kmsg"); };

#define destinations
destination authlog { file("/var/log/auth.log"); };
destination syslog { file("/var/log/syslog"); };
destination cron { file("/var/log/cron.log"); };
destination daemon { file("/var/log/daemon.log"); };
destination kern { file("/var/log/kern.log"); };
destination lpr { file("/var/log/lpr.log"); };
destination user { file("/var/log/user.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 ftp { file("/var/log/ftp.log"); };
destination newscrit { file("/var/log/news/news.crit"); };
destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };

destination debug { file("/var/log/debug"); };
destination messages { file("/var/log/messages"); };
destination console { usertty("root"); };
destination console_all { file("/dev/tty12"); };
destination xconsole { pipe("/dev/xconsole"); };

#create filters
filter f_auth { facility(auth); };
filter f_authpriv { facility(auth, authpriv); };
filter f_syslog { not facility(authpriv, mail); };
filter f_cron { facility(cron); };
filter f_daemon { facility(daemon); };
filter f_kern { facility(kern); };
filter f_lpr { facility(lpr); };
filter f_mail { facility(mail); };
filter f_user { facility(user); };
filter f_ftp { facility(ftp); };
filter f_debug { not facility(auth, authpriv, news, mail); };
filter f_messages { level(info..warn)
and not facility(auth, authpriv, mail, news); };
filter f_emergency { level(emerg); };

filter f_info { level(info); };
filter f_notice { level(notice); };
filter f_warn { level(warn); };
filter f_crit { level(crit); };
filter f_err { level(err); };
filter f_failed { match("failed"); };
filter f_denied { match("denied"); };

#connect filter and destination
log { source(src); filter(f_authpriv); destination(authlog); };
log { source(src); filter(f_syslog); destination(syslog); };
log { source(src); filter(f_cron); destination(cron); };
log { source(src); filter(f_daemon); destination(daemon); };
log { source(kernsrc); filter(f_kern); destination(kern); };
log { source(src); filter(f_lpr); destination(lpr); };
log { source(src); filter(f_mail); destination(mail); };
log { source(src); filter(f_ftp); destination(ftp); };
log { source(src); filter(f_user); destination(user); };
log { source(src); filter(f_mail); filter(f_info);
destination(mailinfo); };
log { source(src); filter(f_mail); filter(f_warn);
destination(mailwarn); };
log { source(src); filter(f_mail); filter(f_err); destination(mailerr);
};

log { source(src); filter(f_debug); destination(debug); };
log { source(src); filter(f_messages); destination(messages); };
log { source(src); filter(f_emergency); destination(console); };

#default log
log { source(src); destination(console_all); };


--
gentoo-user.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
Mike

External


Since: Jul 12, 2004
Posts: 5



(Msg. 2) Posted: Tue Jul 27, 2004 12:10 am
Post subject: Re: [gentoo-user] Syslog-NG logging same output to mail.info & mail.log [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, Jul 26, 2004 at 10:00:22PM +0100, Mal Herring wrote:
> Hey list,
> Maybe someone could gimme a quick hand, below is my syslog-ng.conf file,
> if I remove the destination, filter and log commands for the mail.info -
> will this cure my problem ?
>
Tell us your problem and maybe someone can help Wink.

[snip]

Mike

--
gentoo-user.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-user] remote logging with syslog-ng - Hello! How can I make syslog-ng to accept connections from remote hosts? Thanks, Istvan -- gentoo-user@gentoo.org..

[gentoo-user] FW: mail-mta/exim (is blocking mail-mta/ssmt.. - I haven't done an emerge on my server in quite a while, but now that I've upgraded the CPU/RAM, I figure it's about..

[gentoo-user] How to get notified of new mail in custom ma.. - Hi, I have a email system comprising of fetchmail, to fetchmail mail from pop servers. Procmail, to filter the incomin...

[gentoo-user] [blocks B ] <mail-mta/qmail-1.03-r16 (is blo.. - Hello, I get the message from the subject when trying to emerge -pu world. This is on a standard system, that is only...

[gentoo-user] syslog problem.... - When I try to start exim, I get this: * Caching service dependencies ... * Service 'sysklogd' already provided by..

[gentoo-user] syslog and login attempts - Hey everyone. Where would I find login attempts logged? I've looked at /var/log/syslog, but didn't see it there (I'm...
       Soft32 Home -> Linux -> User All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]