[syslog-ng]centralized loghost

Guillaume LACHENAL glachenal@on-x.com
Thu, 24 Oct 2002 17:19:04 +0200


I've just install syslog-ng 1.5.21 for centralizing all servers log's

Here is the conf file :

- - syslog-ng.conf - -

options { use_dns(no); sync(0); };

source s_internal { internal(); };
source net { udp( ip(192.168.12.2) port(514) ); };

destination hosts { file( "/var/log/$HOST/$YEAR/$MONTH/$DAY/$FACILITY"\
                        create_dirs(yes) owner("root") group("root")\
                        perm(0600) dir_perm(0700) ); };

log { source(s_internal); source(net); destination(hosts); };

- - 

the problem is that logs go to

/var/log/IP_of_$HOST/ ...

Thanks for help

G.