https://github.com/clever/log-replay
Replays log files at a given speed
https://github.com/clever/log-replay
Last synced: 6 months ago
JSON representation
Replays log files at a given speed
- Host: GitHub
- URL: https://github.com/clever/log-replay
- Owner: Clever
- License: apache-2.0
- Created: 2016-03-02T02:38:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-04-24T00:27:18.000Z (about 1 year ago)
- Last Synced: 2025-04-24T01:26:33.177Z (about 1 year ago)
- Language: Makefile
- Size: 30.3 KB
- Stars: 19
- Watchers: 63
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Log-replay
`log-replay` is a tool for replaying a given log at a given speed. The tool is designed to be CLI friendly, allowing pipes where possible.
## Usage
```bash
$ log-replay -h
Usage of log-replay:
-i string
Input file (if not using stdin)
-s int
Lines per second (default 100)
```
`log-replay` accepts input in two ways, you can either pass a file path with the `-i` flag, or you can pipe input into stdin. All output is written to stdout.
## Examples
Replaying a log file from stdin at 2 lines/sec:
```bash
$ log-replay -s 2 < input.txt
```
Replaying a log file from stdin to syslog:
```bash
$ log-replay -s 2 < input.txt | logger -t test
```
Replaying a log file from stdin to a remote logger
```bash
$ log-replay -s 2 < input.txt | logger -t test -n loghost.example.com
```