Change filebeat output test for multi node test

This commit is contained in:
vcerenu
2025-05-20 14:36:55 -03:00
parent 91a2566aa2
commit a1514129ff
2 changed files with 37 additions and 16 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ COMMAND_TO_EXECUTE="filebeat test output"
MASTER_CONTAINERS=$(docker ps --format '{{.Names}}' | grep -E 'manager')
if [ -z "$CONTAINER_NAMES" ]; then
echo "No se encontraron contenedores con 'master' en su nombre."
if [ -z "$MASTER_CONTAINERS" ]; then
echo "No containers were found with 'manager' in their name."
else
for MASTER_CONTAINERS in $MASTER_CONTAINERS; do
FILEBEAT_OUTPUT=$(docker exec "$MASTER_CONTAINERS" $COMMAND_TO_EXECUTE)