mirror of https://github.com/CISOfy/lynis.git
Merge pull request #104 from alobodzinski/syslog-ng
Detect remote system logging for syslog-ng
This commit is contained in:
commit
f8940e20b2
|
@ -343,7 +343,7 @@
|
|||
fi
|
||||
if [ -f ${SYSLOGD_CONF} ]; then
|
||||
logtext "Test: check if logs are also logged to a remote logging host"
|
||||
FIND=`egrep "@[a-zA-Z0-9]" ${SYSLOGD_CONF} | grep -v "^#" | grep -v "[a-zA-Z0-9]@"`
|
||||
FIND=`egrep "@[a-zA-Z0-9]|destination\s.+(udp|tcp).+\sport" ${SYSLOGD_CONF} | grep -v "^#" | grep -v "[a-zA-Z0-9]@"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
logtext "Result: remote logging enabled"
|
||||
AddHP 5 5
|
||||
|
|
Loading…
Reference in New Issue