logfilegen

Logfilegen is a fast and highly customizable tool to generate common server (nginx, etc) or user-defined format log files. You can generate log file with the desired rate (lines per second), the file size, lines count and the duration. Each variable of the log file can be redefined by the random or static value. logfilegen depends just on GCC or Clang with C++11 support, and, optionally, cmake.

Github repo, Latest release

Dockerhub repo

AUR, openSUSE

NEWS

02 March 2023, 2.3.0

MANUAL

To install it, please read Installation guide

logfilegen is controlled by the configuration variables and templates. The usual way to run logfilegen from the command line is, for example:

logfilegen --template=mytemplate.tp --duration=20 --rate=100 --logfile=out.log

The configuration variables affects how logfilegen works, and templates affects the generation of log file. There are many customization ways for logfilegen. To master them, you can read the following chapters:

Using configuration

Using templates

Using metrics

Benchmarking (by air3ijai)

Written by Peter Semiletov, 2023