From bfd71f30fb4ed91cdd5000a0330b4f0d15c3c78c Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Wed, 1 Jul 2026 18:18:47 +0700 Subject: [PATCH] Change filebeat test for multi node deployment --- .github/multi-node-filebeat-check.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/multi-node-filebeat-check.sh b/.github/multi-node-filebeat-check.sh index 4bd4f163..49c48e94 100755 --- a/.github/multi-node-filebeat-check.sh +++ b/.github/multi-node-filebeat-check.sh @@ -6,9 +6,8 @@ if [ -z "$MASTER_CONTAINERS" ]; then echo "No containers were found with 'master' in their name." else for MASTER_CONTAINERS in $MASTER_CONTAINERS; do - FILEBEAT_OUTPUT=$(docker exec "$MASTER_CONTAINERS" $COMMAND_TO_EXECUTE) - FILEBEAT_STATUS=$(echo "${FILEBEAT_OUTPUT}" | grep -c OK) - if [[ $FILEBEAT_STATUS -eq 21 ]]; then + docker exec "$MASTER_CONTAINERS" $COMMAND_TO_EXECUTE + if [[ $? -eq 0 ]]; then echo "No errors in filebeat" echo "${FILEBEAT_OUTPUT}" else @@ -25,9 +24,8 @@ if [ -z "$MASTER_CONTAINERS" ]; then echo "No containers were found with 'worker' in their name." else for MASTER_CONTAINERS in $MASTER_CONTAINERS; do - FILEBEAT_OUTPUT=$(docker exec "$MASTER_CONTAINERS" $COMMAND_TO_EXECUTE) - FILEBEAT_STATUS=$(echo "${FILEBEAT_OUTPUT}" | grep -c OK) - if [[ $FILEBEAT_STATUS -eq 21 ]]; then + docker exec "$MASTER_CONTAINERS" $COMMAND_TO_EXECUTE + if [[ $? -eq 0 ]]; then echo "No errors in filebeat" echo "${FILEBEAT_OUTPUT}" else