Posted on 10 Jan 2018
GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
https://github.com/buger/goreplay
- –input-raw: 捕获http流量, 指定ip或者端口
- –input-file: 流量文件
- –input-tcp:
- –output-http: 重放http流量到一个给定的节点
- –output-file: 输出流量到文件
- –output-tcp: 定向流量到另一个Gor实例
- –output-stdout: 输出流量到标准输出
goreplay --input-raw :80 --output-stdout
goreplay --input-raw :80 --output-stdout
goreplay --input-raw :80 --output-stdout --http-allow-header "Host: api.test.local"
goreplay --input-raw :80 --output-file=goreplay.log
goreplay --input-raw :80 --output-http="http://api.test.dev"