Last active
October 23, 2024 23:26
-
-
Save detj/88a615e658227348392277477f0bd81d to your computer and use it in GitHub Desktop.
use angle grinder to filter certain log lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax - assuming a `docker-compose.yml` file is present at $(PWD) | |
docker compose logs --no-log-prefix -f <compose-service-name> | agrind '(*) AND NOT ("string-one" OR "string-two")' | |
# example | |
docker compose logs --no-log-prefix -f my-compose-service | agrind '(*) AND NOT ("ping" OR "traces export")' | |
# combine angle grinder with tailspin | |
docker compose logs --no-log-prefix -f my-compose-service | agrind '(*) AND NOT ("ping" OR "traces export")' | tspin -ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment