Godeng is used to generate test logs. For example, to generate a large amount of test data in ELK. you can define the rule and name of the fields, and godeng will automatically generate the data for you.

Godeng depends on gofakeit, thanks to gofakeit πŸ₯°

πŸ‘¨β€πŸ’» installation

You can install godeng using the following

1. πŸ“¦ Using .tar.gz archive

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

2. 🐳 Docker

docker run --rm chenjiayao/godeng

πŸ§‘β€πŸ’» Usage

There are useful options.

      --config string      config file (default "./dodeng.json")
      --count int          count (default 100)
      --file string        output file, only used when output is file (default "./godeng.out")
      --format string      output format (default "json")
  -h, --help               help for godeng
      --loop               loop output forever until killed. if loop is set, then count is ignored
      --output string      output (default "stdout")
      --sleep int          fix creation time interval for each log (second)
      --tablename string   tablename, only used when output is sql (default "godeng")
      --url string         http request url,only used when output is http/https and format is json


Send a post request to http://some.website every 3 seconds, and never exit
>>> godeng --config=godeng.json --url=http://some.website --sleep=3 --loop

Generate 100 sql statements to insert into the faker table
>>> godeng --config=godeng.json --format=sql --coun=100 --tablemame=faker 

Output 100 json data to output.json file
>>> godeng --config=godeng.json --format=json --output=file --file=output.json

πŸ›  config

The config file defines the properties of each field, each field has at least two properties: key and type. godeng will generate the data according to the definition of the config file. the specific writing rules can be seen in the example/example.json file

Support Formats

  • json
  • sql

Support output

  • stdout
  • file
  • http

Support type

  • string
  • int
  • float
  • ipv4
  • mac
  • ipv6
  • bool
  • enum
  • url
  • datetime
  • timestamp
  • email
  • sequence
  • ua (user-agent)
  • uuid
  • sentence


if you need more ouput/format/support type or find a bug, please raise a issue.


View Github