Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
csback
Commits
29be4b38
Commit
29be4b38
authored
Aug 02, 2019
by
thomas.forbriger
Browse files
csback_syslog-ng.conf: restrict lines to those with keywords in the header
parent
c93cf292
Changes
1
Hide whitespace changes
Inline
Side-by-side
csback_syslog-ng.conf
View file @
29be4b38
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#
#
# Copy the content of this file to /etc/syslog-ng/syslog-ng.conf or simply add
# Copy the content of this file to /etc/syslog-ng/syslog-ng.conf or simply add
# include "path/to/this/file";
# include "path/to/this/file";
#
# Alternatively copy this file to /etc/syslog-ng/conf.d
# Alternatively copy this file to /etc/syslog-ng/conf.d
#
#
# This version was tested with syslog-ng 3.7.1
# This version was tested with syslog-ng 3.7.1
...
@@ -12,6 +13,9 @@
...
@@ -12,6 +13,9 @@
# configration.
# configration.
#
#
# See README.syslog for general comments.
# See README.syslog for general comments.
#
# -----------------------------------------------------------------------------
# $Id$
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
#
#
# REVISION:
# REVISION:
...
@@ -23,6 +27,8 @@
...
@@ -23,6 +27,8 @@
# the changes make csback messages be properly logged
# the changes make csback messages be properly logged
# 2016/07/25 V1.4 adjust to operate correctly with recent version of
# 2016/07/25 V1.4 adjust to operate correctly with recent version of
# syslog
# syslog
# 2018/08/02 V1.4 (thof): restrict filters to entries with csback
# strings in the message header
#
#
# =============================================================================
# =============================================================================
# use network port for phython logging mechanism
# use network port for phython logging mechanism
...
@@ -32,7 +38,8 @@ udp(ip(0.0.0.0) port(3333));
...
@@ -32,7 +38,8 @@ udp(ip(0.0.0.0) port(3333));
};
};
# csback related
# csback related
filter
fil_csback
{
match
(
'.*csback.*'
); };
filter
fil_csback
{
match
(
'.*csback.*'
value
(
MSGHDR
)); };
destination
csbacklog
{
destination
csbacklog
{
file
(
"/var/log/csback.log"
file
(
"/var/log/csback.log"
perm
(
0644
)
fsync
(
yes
)
perm
(
0644
)
fsync
(
yes
)
...
@@ -50,19 +57,20 @@ destination csbackStatus {
...
@@ -50,19 +57,20 @@ destination csbackStatus {
template
(
"${DATE} ${FULLHOST} ${MSGHDR}${MSG}\n"
)
template
(
"${DATE} ${FULLHOST} ${MSGHDR}${MSG}\n"
)
template
-
escape
(
no
));
template
-
escape
(
no
));
};
};
filter
fil_csbackCritical
{
match
(
'.*csback.*CRITICAL.*'
); };
filter
fil_csbackCritical
{
match
(
'.*csback.*CRITICAL.*'
value
(
MSGHDR
)
); };
log
{
source
(
csback
);
source
(
src
);
log
{
source
(
csback
);
source
(
src
);
filter
(
fil_csbackCritical
);
filter
(
fil_csbackCritical
);
destination
(
csbackStatus
); };
destination
(
csbackStatus
); };
# BFO2LSDF related
# BFO2LSDF related
filter
fil_BFO2LSDF
{
match
(
'.*BFO2LSDF.*'
); };
#source BFOLSDFsrc { unix-stream("/dev/log"); internal(); };
filter
fil_BFO2LSDF
{
match
(
'.*BFO2LSDF.*'
value
(
MSGHDR
)); };
log
{
source
(
csback
);
source
(
src
);
log
{
source
(
csback
);
source
(
src
);
filter
(
fil_BFO2LSDF
);
filter
(
fil_BFO2LSDF
);
destination
(
csbacklog
); };
destination
(
csbacklog
); };
# csclean related
# csclean related
filter
fil_csclean
{
match
(
'.*csclean.*'
); };
filter
fil_csclean
{
match
(
'.*csclean.*'
value
(
MSGHDR
)
); };
log
{
source
(
csback
);
source
(
src
);
log
{
source
(
csback
);
source
(
src
);
filter
(
fil_csclean
);
filter
(
fil_csclean
);
destination
(
csbacklog
); };
destination
(
csbacklog
); };
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment