ยง2024-05-17
- redisMongoxx.yushei.com.tw /etc/syslog-ng/syslog-ng.conf
@version: 3.25
@include "scl.conf"
# Sources
source s_mongo_log {
file("/opt/package/mongoDB/log/mongod.log" flags(no-parse));
};
# Destinations
destination d_hc4nas02 {
syslog("hc4nas02.yushei.net" transport("udp") port(514));
};
# Bind Sources and Destination
log {
source(s_mongo_log);
destination(d_hc4nas02);
};