diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-03-15 16:25:00 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-03-15 16:25:00 +0300 |
commit | 303050dda3ffa97c0139db07dfa41f94f2f217f8 (patch) | |
tree | ff21232a188a0568b788526aa9391a04e9619f55 /include/tests_logging | |
parent | 306d9eaab6ee20d741fcff33be9f06e4c6d8ff63 (diff) |
[LOGG-2154] Adjusted test to search in configuration file correctly
Diffstat (limited to 'include/tests_logging')
-rw-r--r-- | include/tests_logging | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_logging b/include/tests_logging index efb9e9d2..27e6baef 100644 --- a/include/tests_logging +++ b/include/tests_logging @@ -363,7 +363,7 @@ # Search for configured destinations with an IP address or hostname, then determine which ones are used as a log destination DESTINATIONS=$(${GREPBINARY} "^destination" ${SYSLOGD_CONF} | ${EGREPBINARY} "(udp|tcp)" | ${GREPBINARY} "port" | ${AWKBINARY} '{print $2}') for DESTINATION in ${DESTINATIONS}; do - FIND2=$(${GREPBINARY} "log" | ${GREPBINARY} "source" | ${EGREPBINARY} "destination\(${DESTINATION}\)") + FIND2=$(${GREPBINARY} "log" ${SYSLOGD_CONF} | ${GREPBINARY} "source" | ${EGREPBINARY} "destination\(${DESTINATION}\)") if [ ! -z "${FIND2}" = "" ]; then LogText "Result: found destination ${DESTINATION} configured for remote logging" REMOTE_LOGGING_ENABLED=1 |