Network/Monitoring

From Hackerspace Brussels
< Network
Revision as of 23:51, 31 July 2010 by 62.235.232.7 (Talk) (Logging)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Logging[edit]

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