Created
October 22, 2022 14:58
-
-
Save bekwam/929820314ada4cc9df6db8ef4cdb7e98 to your computer and use it in GitHub Desktop.
Docker Piping Logs to JQ for Flat Format
This file contains 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
docker container logs es | jq -r '"\(.["@timestamp"]) \(.["log.level"]) \(.message)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment