Created
January 22, 2026 00:05
-
-
Save anarchivist/032d720a94aa1c5551d6c7d3cd167d0b to your computer and use it in GitHub Desktop.
cloudwatch insights query to IP address in traefik logs into octets
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
| fields @timestamp, @message | |
| | filter RequestHost like 'HOSTNAME' | |
| | parse ClientHost /(?<octet1>\d{1,3})\.(?<octet2>\d{1,3})\.(?<octet3>\d{1,3})\.(?<octet4>\d{1,3})/ | |
| | stats count(*) as ClientHostCount by octet1, octet2 | |
| | sort ClientHostCount desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment