fix(elk): update Elasticsearch host configuration to use load balancer

This commit is contained in:
Ben Martin 2024-12-21 21:51:59 +00:00
parent 191312d023
commit c0ea71da15
Signed by: ben
GPG key ID: 859A655FCD290E4A

View file

@ -318,8 +318,7 @@ job "elk" {
data = <<-EOF data = <<-EOF
elasticsearch: elasticsearch:
hosts: hosts:
{{ range service "elk-node-http" }} - https://elk-lb-nginx.service.consul:9200
- https://{{ .Address }}:{{ .Port }}{{ end }}
username: ${ELASTICSEARCH_USERNAME} username: ${ELASTICSEARCH_USERNAME}
password: ${ELASTICSEARCH_PASSWORD} password: ${ELASTICSEARCH_PASSWORD}
requestTimeout: 600000 requestTimeout: 600000