[syslog-ng] Forward syslog-ng messages
Michael Kolowicz
michael.kolowicz at km-f.eu
Sat Jan 21 15:07:10 CET 2012
> Please verify first that syslog-ng actually gets the incoming traffic.
The incoming traffic will be regnozie and processed. I have configure to
write a database and to a local file - it works fine
But not the forwarding - BTW: The address is be changed, why I use another
machine to test my application ;-)
Here my full config as reference
@version: 3.2
#ADM_NTINST @ 11:45 20.01.2012
source s_udp {udp(port(514));};
destination d_SYSLOG { file("/var/log/syslog");};
destination d_udp1514 {udp("192.168.2.108" port (1514));};
destination SUA002254_localhost_SYS_SYSLOG_uaagent {sql( type(mysql)
host("localhost")
username("USR_SYS_SYSLOG")
password("pw_Syslog")
database("SYS_SYSLOG")
table("uaagent")
columns("host", "source_ip", "facility", "priority", "tag", "unixtime",
"program", "msg")
values("$HOST","$SOURCEIP","$FACILITY","$PRIORITY","$TAG",
"$UNIXTIME","$PROGRAM","$MSGONLY")
indexes("host", "source_ip", "facility", "priority", "tag", "unixtime",
"program", "msg"));};
#log_uaagent
log { source(s_udp); destination(d_udp1514);
destination(SUA002254_localhost_SYS_SYSLOG_uaagent); destination(d_SYSLOG);
};
More information about the syslog-ng
mailing list