log-replay

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

$ 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:

$ log-replay -s 2 < input.txt

Replaying a log file from stdin to syslog:

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

Replaying a log file from stdin to a remote logger

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL