Re: syslog server for multipe devices

From: matthew zeier (mrz@intelenet.net)
Date: Sat Mar 16 2002 - 13:41:49 EST


> From what I understand, syslog-ng can be set up to pretty much ignore the
> facility and create separate logs per host, if required.

Indeed - here's the magic :

###############################################################
# automatic host sorting

source local {
        unix-stream("/dev/log");
        udp(ip(0.0.0.0) port(514));
        internal();
};

destination hosts {

file("/home/logs/$HOST/$YEAR/$MONTH/$DAY/$FACILITY.$YEAR-$MONTH-$DAY"
        owner(root) group(root) perm(0640) dir_perm(0700)
create_dirs(yes)); };

# log by host
log { source(local); destination(hosts); };
###############################################################



This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:13:37 EDT