Log z tftpd pre syslog-ng

Jozef Drahovsky freebsdcz2 at jozef.drahovsky.sk
Mon Feb 7 13:47:15 CET 2011


 >> Potrebujem logovat operacie tfpd pouzivam syslog-ng ale neako sa mi nedari.
 >> /usr/libexec/tftpd tftpd -l -s /tftpboot
 >
 > Dňa 07.02.2011 06:39, Vilem Kebrt wrote / napísal(a):
 > Posli ten syslog-ng.conf cely, tady mas definovany jenom vstupy do daemona, 
nemas tu definovany co s nima :)
 > Vilem

Predpokladam, ze mi chyba niektory vstup o ktorm neviem, lebo dalej nic 
nefiltrujem ale vsetko 1:1 zapisujem
pre nasledne zpracovanie

options { use_dns(no); long_hostnames(off); sync(0); };
source src_internal { internal(); };
source src_run { unix-dgram("/var/run/log"); };
source src_dev { file("/dev/klog"); };
source src_remote { tcp(); udp(); };
#
destination d_int { file( "/var/log-ng/internal/$YEAR-$MONTH-$DAY.txt" 
owner(www) group(www) perm(0664) dir_owner(www) dir_perm(0775) create_dirs(yes) 
); };
destination d_run { file( "/var/log-ng/run/$YEAR-$MONTH-$DAY.txt" owner(www) 
group(www) perm(0664) dir_owner(www) dir_perm(0775) create_dirs(yes) ); };
destination d_dev { file( "/var/log-ng/dev/$YEAR-$MONTH-$DAY.txt" owner(www) 
group(www) perm(0664) dir_owner(www) dir_perm(0775) create_dirs(yes) ); };
destination d_remote { file( "/var/log-ng/host/$HOST/$YEAR-$MONTH.txt" 
owner(www) perm(0664) dir_owner(www) dir_perm(0775) create_dirs(yes) ); };
#
log { source(src_internal); destination(d_int);};
log { source(src_run); destination(d_run);};
log { source(src_dev); destination(d_dev);};
log { source(src_remote); destination(d_remote);};
#

Jozef




More information about the Users-l mailing list