Skip to content

Instantly share code, notes, and snippets.

View chaitanya1123's full-sized avatar
๐Ÿš€
Building skynet

Chaitanya Maniar chaitanya1123

๐Ÿš€
Building skynet
View GitHub Profile
@eldondevcg
eldondevcg / get_cloudwatch_logs.py
Last active December 19, 2025 20:13
Pull down cloudwatch logs with boto
# IF YOU INCUR HUGE COSTS WITH THIS OR IT BREAKS DON'T BLAME ME License
# This is a throw-away script I wrote to pull the json events for all of the streams from a cloudwatch log
# For some reason, the naive way to do vpc network logging does logging to different streams in a cloudwatch
# log based on interface.
# Great for diagnosing lots of things, and generating verbose logs, but for the broad-stroke analysis I was doing,
# all I really wanted was the basic data. This would have been easier if I had logged to s3, but I did not see a
# way to do that in 2 clicks.
group_name = 'CHANGEME'