Skip to content

Commit

Permalink
Attach only logstash container logs to limit the log fload. (#1172)
Browse files Browse the repository at this point in the history
* Attach only logstash container logs and buqitely build containers to limit the log flood.
  • Loading branch information
mashhurs authored Mar 19, 2024
1 parent 528f58e commit 721772a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .ci/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -ex
cd .ci

if [ "$INTEGRATION" == "true" ]; then
docker-compose up --exit-code-from logstash
# remove the `--attach logstash` if you want to see all logs including elasticsearch container logs
docker-compose up --exit-code-from logstash --attach logstash
else
docker-compose up --exit-code-from logstash logstash
fi
4 changes: 2 additions & 2 deletions .ci/docker-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ if [ "$ELASTIC_STACK_VERSION" ]; then

if [ "$INTEGRATION" == "true" ]; then
docker-compose down
docker-compose build
docker-compose build --quiet
else
docker-compose down
docker-compose build logstash
docker-compose build logstash --quiet
fi
else
echo "Please set the ELASTIC_STACK_VERSION environment variable"
Expand Down

0 comments on commit 721772a

Please sign in to comment.