Appendix A – Application Examples and How to Use Remote Syslog
Multi-Tech RouteFinder RF650VPN User Guide
201
Syslog Sample 2
If you are only interested in the netfilter's output, you could use a config like:
# sample syslog-ng.conf file, all syslog messages of karl2 and the
# expression ´kernel´ will be written to /var/log/karls2_kern
options { sync (0);
time_reopen (10);
log_fifo_size (1000);
long_hostnames (off);
use_dns (no);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);
};
source s_sys { unix-stream ("/dev/log"); internal();
udp (ip(0.0.0.0) port(514)); };
destination karl2 { file("/var/log/karl2_kern"); };
filter filter_karl2 { host("192.168.2.157") and match("kernel"); };
log { source(s_sys); filter(filter_karl2); destination(karl2); };
---