Dockerfile for submitting template to ES
docker run -it stakater/elasticsearch-k8s-logs-template
ELASTICSEARCH_URL
: URL of Elasticsearch (default: http://localhost:9200
)
RETRY_LIMIT
: Number of tries to connect to Elasticsearch before failing (default: 10
)
TEMPLATE_NAME
: Name of the template being submitting to elasticsearch (default: logs
)
TEMPLATE_FILE_NAME
: Name of the file which contains the template (default: logs-template.json
)
- Volume map the directory
/es-template/config
to a directory which contains json for your templates - Set the name of the template and name of the file through
TEMPLATE_NAME
andTEMPLATE_FILE_NAME
respectively.