Network/Monitoring

From Hackerspace Brussels
Jump to: navigation, search

[edit] Logging

syslog-ng (we originally installed version 3.1.1 with 'apt-get install syslog-ng')

change the ip to yr ip here-under

@version: 3.0

options {
 keep_hostname(yes);
 create_dirs(yes);
 use_dns(no);
 chain_hostnames(no);
};

# log msgs received from udp (default port 514)
source s_udp {
        udp( ip( 172.22.33.X ) port(514) );
};

destination df_log {
        file("/var/log/$HOST/syslog.log");
};

log {
        source(s_udp);
        destination(df_log);
};