mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 04:51:57 +00:00
Test CI
This commit is contained in:
4
.github/single-node-fb-check.sh
vendored
4
.github/single-node-fb-check.sh
vendored
@@ -1,9 +1,9 @@
|
||||
fbout=$(docker exec single-node_wazuh.manager_1 sh -c 'filebeat test output')
|
||||
fbstatus=$(echo "${fbout}" | grep OK | wc -l)
|
||||
if [[ fbstatus -eq 7 ]]; then
|
||||
echo "No errors in master filebeat"
|
||||
echo "No errors in filebeat"
|
||||
else
|
||||
echo "Errors in master filebeat"
|
||||
echo "Errors in filebeat"
|
||||
echo "${fbout}"
|
||||
exit 1
|
||||
fi
|
4
.github/single-node-log-check.sh
vendored
4
.github/single-node-log-check.sh
vendored
@@ -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 master ossec.log"
|
||||
echo "No errors in ossec.log"
|
||||
else
|
||||
echo "Errors in master ossec.log:"
|
||||
echo "Errors in ossec.log:"
|
||||
echo "${log}"
|
||||
exit 1
|
||||
fi
|
@@ -349,24 +349,9 @@
|
||||
<location>/var/ossec/logs/active-responses.log</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/auth.log</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/syslog</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/dpkg.log</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/kern.log</location>
|
||||
</localfile>
|
||||
|
||||
</ossec_config>
|
@@ -349,24 +349,9 @@
|
||||
<location>/var/ossec/logs/active-responses.log</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/auth.log</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/syslog</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/dpkg.log</location>
|
||||
</localfile>
|
||||
|
||||
<localfile>
|
||||
<log_format>syslog</log_format>
|
||||
<location>/var/log/kern.log</location>
|
||||
</localfile>
|
||||
|
||||
</ossec_config>
|
Reference in New Issue
Block a user