Last active
July 28, 2017 07:29
-
-
Save Mikulas/f51c399d1aa6f9a99a9692b07c64c489 to your computer and use it in GitHub Desktop.
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
SELECT srcport, sum(bytes) | |
FROM vpc | |
WHERE srcaddr << '172.31.0.0/16' -- packets sent from our VPC CIDR | |
AND external=1 -- going outside the VPC | |
GROUP BY srcport -- aggregated by your application ports | |
ORDER BY 2 desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment