Clever/log-replay

Name: log-replay

Owner: Clever

Description: Replays log files at a given speed

Created: 2016-03-02 02:38:20.0

Updated: 2018-05-24 19:30:08.0

Pushed: 2018-05-18 23:03:08.0

Homepage: null

Size: 17

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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
g-replay -h
e of log-replay:
 string
    Input file (if not using stdin)
 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:

g-replay -s 2 < input.txt

Replaying a log file from stdin to syslog:

g-replay -s 2 < input.txt | logger -t test

Replaying a log file from stdin to a remote logger

g-replay -s 2 < input.txt | logger -t test -n loghost.example.com

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.