[syslog-ng] Fwd: new to list, and syslog-ng
Brian Loe
knobdy at gmail.com
Wed Aug 2 20:52:19 CEST 2006
<I hope you don't get this twice (hadn't confirmed my subscription the
first time).>
I'm hoping some of you can give me some guidance in my implementation
of syslog-ng on an AIX 5.3 system. This is what I have for a config
file thus far - will it work?
Also, some help on the best way to move from the AIX syslogd to
syslog-ng? I'm new to AIX as well...
#
# Global options.
#
options {
long_hostnames(off);
use_dns(no);
chain_hostnames(no);
sync(0);
perm(0640);
stats(3600);
};
#
# 'src' is our main source definition. you can add # more sources
driver definitions to it, or define # your own sources, i.e.:
#
#source my_src { .... };
#
source s_local {
internal();
unix-stream("/dev/log");
};
source s_udp {
udp(ip("0.0.0.0") port(514));
};
#
# Filter definitions
#
filter f_cron { facility(cron); };
# filter f_local { facility(local0, local1, local2, local3, local4,
local5, local6, local7) and not filter(f_cron); }; #
filter f_messages { not facility(news, mail); };
filter f_warn { level(warn, err, crit); };
filter f_alert { level(alert); };
#
# Cron-messages in one file:
#
destination cron { file("/var/log/cron"); }; log { source(s_lcoal);
filter(f_cron); destination(cron); };
#
# local[1-7]:
#
destination localmessages { file("/var/log/localmessages"); }; log {
source(s_local); destination(localmessages); };
#
# Network messages:
#
destination netmessages { file("/var/log/netmessages"); }; log {
source(s_udp); destination(netmessages); };
#
# Network message pipe:
#
destination net_pipe { file("/tmp/log/net_pipe"); }; log {
source(s_udp); destination(net_pipe); };
More information about the syslog-ng
mailing list