[syslog-ng] syslog-ng /php -syslog-ng

n r ynr59 at hotmail.com
Mon Sep 15 15:31:20 CEST 2008


hi,

I have syslog-ng on a server (debian Etch), and a client with syslog (ubuntu)

my server configuration is :

source s_local { internal(); unix-stream("/dev/log"); file("/proc/kmsg" log_prefix("kernel: ")); };
source s_tcpmessages { tcp(ip(x.x.x.Y)port(514) max-connections(100)); };
source s_udpmessages { udp(ip(x.x.x.Y)port(514)); };
 
destination d_hosts { file("/log1/HOSTS/$HOST/$YEAR.$MONTH.$DAY/$FACILITY.log"); };
 
destination d_mysql {
program("/usr/bin/mysql -usyslogadmin -p3rda!mysql syslog" template("INSERT INTO logs (host, facility, priority, level, tag, datetime, program, msg) VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC', '$PROGRAM', '$MSG' );\n") template-escape(yes)); };
 
log { source(s_local); destination(d_hosts); };
log { source(s_tcpmessages); destination(d_hosts); };
log { source(s_udpmessages); destination(d_hosts); };
log { source(s_local); destination(d_mysql); };


my client syslog is
*.*             @x.x.x.Y

I don't understand :
1- why i see only (auth, mail, cron,syslog,kern.log) on  destination d_hosts for the server? I need to have (user,dkpg.log ,..) 
2-  ON the server in destination d_hosts, i have  (auth, mail, cron,syslog,kern.log) for my client, but  why  I can't see my client this on php-syslog-ng  interface ?
What'is wrong?
nr


_________________________________________________________________
Appelez vos amis de PC à PC -- C'EST GRATUIT
http://get.live.com/messenger/overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20080915/ce3de453/attachment.htm 


More information about the syslog-ng mailing list