Replays Elastic Load Balancer logs against a test host.
Logs are replayed at their original rate, offset by a number of days (which defaults to 14). For example, replaying logs on 14th August at 10:00am will replay traffic from 1st August at 10:00am.
- Get the replayer:
go get github.com/ONSdigital/aws-elb-replay
- Copy the ELB logs you want to replay from S3:
aws s3 sync s3://path/to/logs logs
- Run the replayer:
aws-elb-replay -host "test-host.internal"
Logs should be in the current working directory, with the pattern logs/YEAR/MONTH/DAY/filename.log
The tests rely on date and time calculations, so a consistent timezone is required, e.g.
export TZ=UTC
go test .
Copyright © 2018, Crown Copyright (Office for National Statistics) (https://www.ons.gov.uk)
Released under MIT license, see LICENSE for details.