This commit is contained in:
vcerenu
2022-06-14 12:50:21 -03:00
parent 672d1fc67a
commit a84ff7b1ff
8 changed files with 101 additions and 41 deletions

View File

@@ -1,8 +1,8 @@
log=$(docker exec single-node_wazuh.manager_1 sh -c 'cat /var/ossec/logs/ossec.log' | grep -P "ERR|WARN|CRIT")
if [[ -z "$log" ]]; then
echo "No errors in ossec.log"
echo "No errors in ossec.log"
else
echo "Errors in ossec.log:"
echo "${log}"
exit 1
echo "Errors in ossec.log:"
echo "${log}"
exit 1
fi