Server
source src {
#
# include internal syslog-ng messages
# note: the internal() soure is required!
#
internal();
#
# the default log socket for local logging:
#
unix-dgram("/dev/log");
#
# uncomment to process log messages from network:
#
udp(ip("192.168.20.192") port(514));
tcp(ip("192.168.20.192") port(5140) keep-alive(yes));
};
Cliente Linux
# Enviem els logs al syslog central
destination centraloghost {
tcp("192.168.20.192" port(5140));
};
log {
source(src);
destination(centraloghost);
};
No hay comentarios:
Publicar un comentario