emit-rs / emit_elasticsearch

Elasticsearch collector for the emit structured logger
Apache License 2.0
0 stars 1 forks source link

Send IndexTemplate from ElasticCollector #5

Closed KodrAus closed 8 years ago

KodrAus commented 8 years ago

An index template needs to be sent so the timestamp is interpreted correctly.

I'd rather expose a method on the collector builder to send this request, so the user can choose not to send that extra HTTP request if they don't need to. Something like put_template.