[syslog-ng]Ca ne marche pas

Laurent =?iso-8859-1?Q?Mesur=E9?= lmesure@nerim.net
Sat, 19 Oct 2002 14:35:16 +0200


Il s'agit d'un message multivolet au format MIME.
--------------13F0F0074E6D7AD37AB6027F
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

i've installed the 1.5.21 version of syslog-ng with postgresql 7.2.2

But if i try to log anything nothing happened, neither in files nor in
database.

i've made a test with the debug (-d) option and here is the resulting
log in log.log file joined to this mail.

I've joined also my syslog-ng.conf


Laurent Mesuré



--------------13F0F0074E6D7AD37AB6027F
Content-Type: application/x-unknown-content-type-txtfile;
 name="log.log"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="log.log"

YmluZGluZyBmZCAzLCBpbmV0YWRkcjogMC4wLjAuMCwgcG9ydDogNTE0CmlvLmM6IGxpc3Rl
bmluZyBvbiBmZCAzCmJpbmRpbmcgZmQgNCwgaW5ldGFkZHI6IDAuMC4wLjAsIHBvcnQ6IDUx
NAppby5jOiBQcmVwYXJpbmcgZmQgNCBmb3IgcmVhZGluZwpiaW5kaW5nIGZkIDUsIHVuaXhh
ZGRyOiAvZGV2L2xvZwppby5jOiBsaXN0ZW5pbmcgb24gZmQgNQpzeXNsb2ctbmcgdmVyc2lv
biAxLjUuMjEgc3RhcnRpbmcKaW8uYzogUHJlcGFyaW5nIGZkIDYgZm9yIHJlYWRpbmcKUmVh
ZCBFT0Ygb24gZmQgNi4KTWFya2luZyBmZCA2IGZvciBjbG9zaW5nLgpDbG9zaW5nIGZkIDYu
CkdhcmJhZ2UgY29sbGVjdGluZyB3aGlsZSBpZGxlLi4uCmdjX21hcms6IE1hcmtpbmcgb2Jq
ZWN0IG9mIGNsYXNzICdzeXNsb2dfYmFja2VuZCcgKDApCmdjX21hcms6IE1hcmtpbmcgb2Jq
ZWN0IG9mIGNsYXNzICdzeXNsb2dfY29uZmlnJyAoMSkKZ2NfbWFyazogTWFya2luZyBvYmpl
Y3Qgb2Yg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AnbG9nX2Rlc3RfZ3JvdXAnICgxOCkKZ2NfbWFy
azogTWFya2luZyBvYmplY3Qgb2YgY2xhc3MgJ2FmZmlsZV9kZXN0JyAoMTkpCmdjX21hcms6
IE1hcmtpbmcgb2JqZWN0IG9mIGNsYXNzICdsb2dfY29ubmVjdGlvbicgKDE3KQpnY19tYXJr
OiBNYXJraW5nIG9iamVjdCBvZiBjbGFzcyAnbG9nX2VuZHBvaW50X2luZm8nICgxOCkKZ2Nf
bWFyazogTWFya2luZyBvYmplY3Qgb2YgY2xhc3MgJ2xvZ19zb3VyY2VfZ3JvdXAnICgxOSkK
Z2NfbWFyazogTWFya2luZyBvYmplY3Qgb2YgY2xhc3MgJ2xvZ19zb3VyY2VfZHJpdmVyJyAo
MjApCmdjX21hcms6IE1hcmtpbmcgb2JqZWN0IG9mIGNsYXNzICdsb2dfZW5kcG9pbnRfaW5m
bycgKDE4KQpnY19tYXJrOiBNYXJraW5nIG9iamVjdCBvZiBjbGFzcyAnYWZzb2NrZXRfc291
cmNlX2Nsb3NlX2NhbGxiYWNrJyAoNikKZ2NfbWFyazogTWFya2luZyBvYmplY3Qgb2YgY2xh
c3MgJ3VuaXhfYWRkcmVzc19pbmZvJyAoNCkKZ2NfbWFyazogTWFya2luZyBvYmplY3Qgb2Yg
Y2xhc3MgJ29iamVjdF9xdWV1ZScgKDQpCmdjX21hcms6IE1hcmtpbmcgb2JqZWN0IG9mIGNs
YXNzICdsb2dfc291cmNlX2RyaXZlcicgKDQpCmdjX21hcms6IE1hcmtpbmcgb2JqZWN0IG9m
IGNsYXNzICdVTktOT1dOJyAoMSkKT2JqZWN0cyBhbGl2ZTogOTksIGdhcmJhZ2UgY29sbGVj
dGVkOiA1Cg==
--------------13F0F0074E6D7AD37AB6027F
Content-Type: text/plain; charset=us-ascii;
 name="syslog-ng.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="syslog-ng.conf"

#***********************************************************************
# Fichier de configuration pour syslog-ng
# Voir syslog-ng(8) et syslog-ng.conf(5) pour plus d'informations
#
#***********************************************************************
# Versions  Date        Auteur
#   1.0     25/09/2002  gb@sysfive.com
#   2.0     24/04/2002  ben@pleasenospam.tnsi.com
#   3.0     16/10/2002  Laurent Mesure <lmesure@nerim.net>
#***********************************************************************
# Versions  Description
#   1.0     Original
#   2.0     Modifie
#   3.0     Francisation et adaptation
#***********************************************************************
options { sync (0);
	time_reopen (10);
	log_fifo_size (100);
	long_hostnames (on);
	use_dns (yes);
	use_fqdn (yes);
	create_dirs (yes);
	keep_hostname (yes);
	time_reap(12);
	gc_busy_threshold(768);
	};
#***********************************************************************
source s_sys { unix-stream ("/dev/log"); internal(); };
source s_udp { udp(); };
source s_tcp { tcp(); };
source s_local { internal(); };
#***********************************************************************
# destination d_files { file("/var/log/syslog-ng/$HOST/$FACILITY.$LEVEL"
# template{"$ISODATE $HOST $FACILITY $PRIORITY $PROCESS $MSG\n"));
# };

destination d_local { file("/var/log/syslog-ng.$MONTH"); };

destination d_msgs { file("/var/log/messages"
	template("$FULLDATE $HOST $FACILITY.PRIORITY $MSG\n"));
	};

destination d_mail { file("/var/log/maillog"
	template("$FULLDATE $HOST mail.$PRIORITY $MSG\n"));
	};

destination d_secure { file("/var/log/secure"
	template("$FULLDATE $HOST authpriv.$PRIORITY $MSG\n"));
	};

destination d_cron { file("/var/log/cron"
	template("$FULLDATE $HOST cron.$PRIORITY $MSG\n"));
	};

destination d_bootlog { file("/var/log/boot.log"
	template("$FULLDATE $HOST local7.$PRIORITY $MSG\n"));
	};

destination d_postgres { file("/mnt/disk2/spooldir/syslog2pgsql/fulllog.$YEAR.$MONTH.$DAY.$HOUR.$MIN.$SEC"
	template("INSERT INTO msg_table VALUES\( '$R_ISODATE', '$S_ISODATE', '$HOST', '$FACILITY', $PRIORITY', '$MSG'\)\;\n")
	template_escape(yes)
	owner(postgres));
	};

#***********************************************************************
#***********************************************************************

filter f_msgs { host("syslogdb")
	and level(warning,err,crit,alert,emerg)
	and not facility(mail,authpriv,cron);
	};

filter f_mail { host("syslogdb")
	and facility(mail);
	};

filter f_cron { host("syslogdb")
	and facility(cron);
	};

filter f_secure { host("syslogdb")
	and facility(authpriv);
	};

filter f_bootlog { host("syslogdb")
	and facility(local7);
	};

filter f_postgres { host("syslogdb");
	};
#***********************************************************************
#***********************************************************************

# log { source(s_sys); source(s_udp); destination(d_files); };
log { source(s_sys); source(s_udp); filter(f_msgs); destination(d_msgs); };
log { source(s_sys); source(s_udp); filter(f_mail); destination(d_mail); };
log { source(s_sys); source(s_udp); filter(f_secure); destination(d_secure); };
log { source(s_sys); source(s_udp); filter(f_cron); destination(d_cron); };
log { source(s_sys); source(s_udp); filter(f_bootlog); destination(d_bootlog); };
log { source(s_sys); source(s_udp); source(s_tcp); filter(f_postgres); destination(d_postgres); };
log { source(s_local); destination(d_local); };

--------------13F0F0074E6D7AD37AB6027F--