Skip to content

ikwattro/elastigen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elastigen

Elastic Search Data Generator

Usage:

Clone this library and install deps:

git clone git@github.com:ikwattro/elastigen
cd elastigen

composer install

You'll need to provide a mapping file (your ES mapping) and a Providers file representing to which generated data type a field in the mapping is corresponding.

You can find an example in the resources folder.

For all providers available, you can check the README of the Faker library : https://github.com/fzaninotto/Faker#formatters

A host and an index name is also required, the last argument (number of generations) is optional and is defaulted to PHP_INT_MAX

php bin/app.php http://eshost:9200 testIndex resources/mapping.json resources/providers.json 1000
Warning

This code was made quickly for a quick sandbox data in Elastic, I don't provide support or guarantee improvements.

About

ElasticSearch Data Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages