Template validator for Elasticsearch
Go to file
Ivan Panteleev f1b7ea15b1 init commit
2019-12-04 15:08:36 +03:00
samples init commit 2019-12-04 15:08:36 +03:00
templates init commit 2019-12-04 15:08:36 +03:00
.gitignore init commit 2019-12-04 15:08:36 +03:00
app.py init commit 2019-12-04 15:08:36 +03:00
docker-compose.yml init commit 2019-12-04 15:08:36 +03:00
Jenkinsfile init commit 2019-12-04 15:08:36 +03:00
README.md init commit 2019-12-04 15:08:36 +03:00

  • Create file <template_name>.json and fill it with ES index template

  • Copy <template_name>.json into templates directory

  • Create file <template_name>.json and fill it with sample data for your <template_name>

  • Copy <template_name>.json into samples directory

  • Build and run ES container:
    docker-compose up -d

  • Run app.py script and read it's output:
    python app.py

If ES-generated mapping matches your template script will exit with 0 status code or 1 in opposite case.