2012년 3월 20일 화요일

syslog-ng 설정값


syslog-ng 설정값

======================================================


options {


long_hostnames(off);

sync(0);

stats(43200);

dns_cache(yes);

use_fqdn(no);

keep_hostname(yes);

use_dns(yes);

};



source gateway {

unix-stream("/dev/log");

internal();

udp(ip(0.0.0.0) port(514));

};



source tcpgateway {

unix-stream("/dev/log");

internal();

tcp(ip(0.0.0.0) port(514) max_connections(1000));

};



destination hosts {

file("/home2/syslogs/$HOST/$FACILITY"

owner(root) group(root) perm(0600) dir_perm(0700)

create_dirs(yes));

};



log {

source(gateway); destination(hosts);

};



log {

source(tcpgateway); destination(hosts);

};

댓글 없음: