obsrvbl-oss / flowlogs-reader

Command line tool and Python library for working with AWS VPC Flow Logs
Apache License 2.0
136 stars 25 forks source link

Iterate backwards instead of forwards #9

Closed mjschultz closed 8 years ago

mjschultz commented 8 years ago

Per the AWS docs it looks like the API call returns 10,000 events starting at the most recent time not the earliest time if StartFromHead is not specified. As such, we'd want to page through the results going backwards instead of forwards.

bbayles commented 8 years ago

For posterity: Instead of iterating backwards, we're using startFromHead to start from the beginning.