All Projects → mingrammer → Flog

mingrammer / Flog

Licence: mit
🎩 A fake log generator for common log formats

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Flog

traffic analyser
Retrieve useful information from apache/nginx access logs to help troubleshoot traffic related problems
Stars: ✭ 44 (-91.71%)
Mutual labels:  log, apache
nginx-prometheus
Turn Nginx logs into Prometheus metrics
Stars: ✭ 29 (-94.54%)
Mutual labels:  log, syslog
aixlog
Header-only C++ logging library
Stars: ✭ 95 (-82.11%)
Mutual labels:  log, syslog
Fake Apache Log Generator
Generate a boatload of Fake Apache Log files very quickly
Stars: ✭ 207 (-61.02%)
Mutual labels:  faker, apache
lunaticlog
Fake HTTP log generator module, test if your monitor system can survive under the log spikes.
Stars: ✭ 35 (-93.41%)
Mutual labels:  log, apache
Casual
Fake data generator for javascript
Stars: ✭ 2,793 (+425.99%)
Mutual labels:  faker, generator
Bogus
📇 A simple and sane fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Stars: ✭ 5,083 (+857.25%)
Mutual labels:  faker, generator
Sagan
** README ** This repo has MOVED to https://github.com/quadrantsec/sagan
Stars: ✭ 236 (-55.56%)
Mutual labels:  log, syslog
analog-ce
Analog CE
Stars: ✭ 14 (-97.36%)
Mutual labels:  log, apache
faker
Faker is a Nim package that generates fake data for you.
Stars: ✭ 28 (-94.73%)
Mutual labels:  generator, faker
Faker
Go (Golang) Fake Data Generator for Struct
Stars: ✭ 1,698 (+219.77%)
Mutual labels:  faker, generator
Kataribe
Access log profiler based on response time
Stars: ✭ 298 (-43.88%)
Mutual labels:  log, apache
Fakerator
Random fake data generator with localization for Javascript in Node.js and browser
Stars: ✭ 91 (-82.86%)
Mutual labels:  faker, generator
LogESP
Open Source SIEM (Security Information and Event Management system).
Stars: ✭ 162 (-69.49%)
Mutual labels:  log, syslog
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (+26.74%)
Mutual labels:  faker, generator
siemstress
Very basic CLI SIEM (Security Information and Event Management system).
Stars: ✭ 24 (-95.48%)
Mutual labels:  log, syslog
Go Logger
一个简单而强大的 golang 日志工具包,支持同步和异步输出到 命令行,文件, api 接口,文件支持按文件大小,文件行数,日期切分;A simple and powerful golang logging toolkit that supports synchronous and asynchronous output to the console, file, API interfaces, file support by file size, file line number, date sharding.
Stars: ✭ 152 (-71.37%)
Mutual labels:  log, syslog
Tlog
Terminal I/O logger
Stars: ✭ 170 (-67.98%)
Mutual labels:  log, syslog
WatsonSyslogServer
C# Syslog Server
Stars: ✭ 18 (-96.61%)
Mutual labels:  log, syslog
Console
OS X console application.
Stars: ✭ 298 (-43.88%)
Mutual labels:  log, syslog

Flog

go report card travis ci docker download

flog is a fake log generator for common log formats such as apache-common, apache error and RFC3164 syslog.

It is useful for testing some tasks which require log data like amazon kinesis log stream test.

Thanks to gofakeit 😘

Installation

Using go get

go get -u github.com/mingrammer/flog

It is recommended to also run dep ensure to make sure that the dependencies are in the correct versions.

Using homebrew

brew tap mingrammer/flog
brew install flog

Using .tar.gz archive

Download gzip file from Github Releases according to your OS. Then, copy the unzipped executable to under system path.

Using docker

docker run -it --rm mingrammer/flog

Usage

There are useful options. (flog --help)

Options:
  -f, --format string      log format. available formats:
                           - apache_common (default)
                           - apache_combined
                           - apache_error
                           - rfc3164
                           - rfc5424
                           - json
  -o, --output string      output filename. Path-like is allowed. (default "generated.log")
  -t, --type string        log output type. available types:
                           - stdout (default)
                           - log
                           - gz
  -n, --number integer     number of lines to generate.
  -b, --bytes integer      size of logs to generate (in bytes).
                           "bytes" will be ignored when "number" is set.
  -s, --sleep duration     fix creation time interval for each log (default unit "seconds"). It does not actually sleep.
                           examples: 10, 20ms, 5s, 1m
  -d, --delay duration     delay log generation speed (default unit "seconds").
                           examples: 10, 20ms, 5s, 1m
  -p, --split-by integer   set the maximum number of lines or maximum size in bytes of a log file.
                           with "number" option, the logs will be split whenever the maximum number of lines is reached.
                           with "byte" option, the logs will be split whenever the maximum size in bytes is reached.
  -w, --overwrite          overwrite the existing log files.
  -l, --loop               loop output forever until killed.
# Generate 1000 lines of logs to stdout
$ flog

# Generate 200 lines of logs with a time interval of 10s for each log. It doesn't actually sleep while generating
$ flog -s 10s -n 200 

# Generate a single log file with 1000 lines of logs, then overwrite existing log file
$ flog -t log -w

# Generate a single log gzip file with 3000 lines of logs every 300ms. It actually sleep (delay) while generating
$ flog -t gz -o log.gz -n 3000 -d 10s

# Generate logs up to 10MB and split log files every 1MB in "web/log/*.log" path with "apache combined" format
$ flog -t log -f apache_combined -o web/log/apache.log -b 10485760 -p 1048576

# Generate logs in rfc3164 format infinitely until killed
$ flog -f rfc3164 -l

Supported Formats

  • Apache common
  • Apache combined
  • Apache error
  • RFC3164
  • RFC5424
  • Common log fomat
  • JSON

Supported Outputs

  • Stdout
  • File
  • Gzip

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].