mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add
git-svn-id: http://www.observium.org/svn/observer/trunk@329 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
37
contrib/syslog-ng.conf.pipe
Normal file
37
contrib/syslog-ng.conf.pipe
Normal file
@ -0,0 +1,37 @@
|
||||
options {
|
||||
chain_hostnames(0);
|
||||
time_reopen(10);
|
||||
time_reap(360);
|
||||
#sync(0);
|
||||
log_fifo_size(2048);
|
||||
create_dirs(yes);
|
||||
#owner(root);
|
||||
group(adm);
|
||||
perm(0640);
|
||||
#dir_owner(root);
|
||||
#dir_group(root);
|
||||
dir_perm(0755);
|
||||
use_dns(no);
|
||||
#dns_cache(yes);
|
||||
#log_msg_size(2048);
|
||||
stats_freq(0);
|
||||
bad_hostname("^gconfd$");
|
||||
};
|
||||
|
||||
|
||||
source s_net {
|
||||
udp();
|
||||
};
|
||||
|
||||
destination d_mysql {
|
||||
pipe("/var/log/observer-mysql.pipe"
|
||||
template("INSERT INTO syslog
|
||||
(host, facility, priority, level, tag, datetime, program, msg)
|
||||
VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC','$PROGRAM', '$MSG' );\n") template-escape(yes));
|
||||
};
|
||||
|
||||
log {
|
||||
source(s_net);
|
||||
destination(d_mysql);
|
||||
};
|
||||
|
Reference in New Issue
Block a user