Skip to content

Instantly share code, notes, and snippets.

@bekwam
Created October 22, 2022 14:58
Show Gist options
  • Save bekwam/929820314ada4cc9df6db8ef4cdb7e98 to your computer and use it in GitHub Desktop.
Save bekwam/929820314ada4cc9df6db8ef4cdb7e98 to your computer and use it in GitHub Desktop.
Docker Piping Logs to JQ for Flat Format
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