Skip to content

amrit-canva/fakelogs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fakelogs

A crazy fast fake log data generator

Usage

Config file format

---
# List of patterns to generate logs for. Currently logs are generated for all specified patterns evenly.
patterns:
  - '{"name":"{username}", "age":"{int}", "Moto": "{sentence}", "Summary": "{paragraph}", "ip_addr": "{ipv4}", "email": "{email}", "timestamp":"{ts_rfc3389}"}'

# Works for limiting the EPS to less than 2000. Cannot achieve more than ~10k eps with this setting on.
# Set to 0 for generating uncapped EPS
eps: 10

Generate logs and output to STDOUT

fakelogs generate -c </path/to/config/file.yaml>

Benchmark generating 100K logs with uncapped EPS

fakelogs benchmark -c </path/to/config/file.yaml>

Benchmarking ...
100000 log events generated in 1.781622306 seconds
EPS: 56129

Benchmark using the EPS value specified in config file

fakelogs benchmark -c </path/to/config/file.yaml> --eps

Benchmarking ...
1500 log events generated in 1.161693726 seconds
EPS: 1291

About

A fake log data generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 94.8%
  • Dockerfile 3.0%
  • Shell 2.2%