This commit is contained in:
vcerenu
2022-06-08 17:26:35 -03:00
parent a626216643
commit 40f55cfb53
5 changed files with 48 additions and 47 deletions

8
.github/single-node-log-check.sh vendored Executable file
View File

@@ -0,0 +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 master ossec.log"
else
echo "Errors in master ossec.log:"
echo "${log}"
exit 1
fi