ยง2024-05-17

@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);
};