sonyxperiadev / lumber-mill

Where logs are cut into lumber
Apache License 2.0
12 stars 6 forks source link

Allow list of elasticsearch hosts or a supplier of hosts #22

Open jrask opened 7 years ago

jrask commented 7 years ago
elasticsearch.client (
    elasticsearch_urls : ["http://node1", "http://node2"]
)

// Using a Supplier that can "sniff" for hosts or do it in any other way.
// Supplier would be invoked for each request.
elasticsearch.client (
    elasticsearch_supplier : myCustomSupplier
)

Perhaps we should implement the sniffing as well based on the hosts that we get. Perhaps a separate use_ssl config is better and then have elasticsearch_hosts as config.