Commit b555e1d0 authored by thomas.forbriger's avatar thomas.forbriger

syslog-ng [FIX]: make recent syslog-ng happy

A recent syslog-ng (OpenSuSE Tumpleweed, syslog-ng 3.7.1) complained because
of the strange and conflicting source definitions used here. In my opinion all
messages are simply passed internally. No need to tcp or /dev/log. Anyway, the
quickfix here makes things go well.
parent 2d45e378
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# V1.0 Daniel Armbruster # V1.0 Daniel Armbruster
# 2012/08/09 V1.1 BFO2LSDF filter added # 2012/08/09 V1.1 BFO2LSDF filter added
# 2013/23/01 V1.2 csback status file logging # 2013/23/01 V1.2 csback status file logging
# 2016/07/15 V1.3 csback uses strange source definitions
# a recent version of syslog-ng complains
# the changes make csback messages be properly logged
# #
# ============================================================================= # =============================================================================
...@@ -32,27 +35,27 @@ source csback { ...@@ -32,27 +35,27 @@ source csback {
filter fil_csback { match('^csback' value(MSG)); }; filter fil_csback { match('^csback' value(MSG)); };
destination csbacklog { destination csbacklog {
file("/var/log/csback.log" file("/var/log/csback.log"
perm(0644) perm(0644) fsync(yes)
template("$DATE $HOST $MSG\n") template("$DATE $HOST $MSG\n")
template-escape(no)); template-escape(no));
}; };
log { source(csback); filter(fil_csback); destination(csbacklog); }; log { source(src); source(csback); filter(fil_csback); destination(csbacklog); };
# log CRITICAL messages to additional status file (for csbackntfy) # log CRITICAL messages to additional status file (for csbackntfy)
destination csbackStatus { destination csbackStatus {
file("/var/log/csback.status" file("/var/log/csback.status"
perm(0666) perm(0666) fsync(yes)
template("$DATE $HOST $MSG\n") template("$DATE $HOST $MSG\n")
template-escape(no)); template-escape(no));
}; };
filter fil_csbackCritical { message('.*csback.*CRITICAL.*'); }; filter fil_csbackCritical { message('.*csback.*CRITICAL.*'); };
log { source(csback); filter(fil_csbackCritical); destination(csbackStatus); }; log { source(src); source(csback); filter(fil_csbackCritical); destination(csbackStatus); };
# BFO2LSDF related # BFO2LSDF related
source BFO2LSDFsrc { unix-stream("/dev/log"); internal(); }; #source BFOLSDFsrc { unix-stream("/dev/log"); internal(); };
filter fil_BFO2LSDF { message('.*BFO2LSDF.*'); }; filter fil_BFO2LSDF { message('.*BFO2LSDF.*'); };
log { source(BFO2LSDFsrc); filter(fil_BFO2LSDF); destination(csbacklog); }; log { source(src); filter(fil_BFO2LSDF); destination(csbacklog); };
# csclean related # csclean related
filter fil_csclean { message('.*csclean.*'); }; filter fil_csclean { message('.*csclean.*'); };
log { source(BFO2LSDFsrc); filter(fil_csclean); destination(csbacklog); }; log { source(src); filter(fil_csclean); destination(csbacklog); };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment