Skip to content

Commit e4c8a42

Browse files
committed
Logstash with filebeat final
1 parent d95e932 commit e4c8a42

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

terraform/modules/k8s-addons/eks-filebeat.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ resource "helm_release" "filebeat" {
2727
[data.template_file.filebeat.rendered,
2828
try(local.elk.helm_values_override, null),
2929
])
30+
depends_on = [
31+
helm_release.logstash
32+
]
3033
}
3134

3235
resource "kubectl_manifest" "elk_external_secrets" {

terraform/modules/k8s-addons/elk-templates/logstash-values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ logstashConfig:
1818
xpack.monitoring.elasticsearch.username: '$${ELASTICSEARCH_USERNAME}'
1919
xpack.monitoring.elasticsearch.password: '$${ELASTICSEARCH_PASSWORD}'
2020
xpack.monitoring.elasticsearch.ssl.certificate_authority: '/etc/logstash/certificates/ca.crt'
21-
xpack.monitoring.elasticsearch.hosts: ["https://elasticsearch-es-internal-http.elk.svc:9200"]
21+
xpack.monitoring.elasticsearch.hosts: ["https://$${ELASTICSEARCH_HOST}:9200"]
2222
2323
logstashPipeline:
2424
logstash.conf: |
@@ -30,7 +30,7 @@ logstashPipeline:
3030
3131
output {
3232
elasticsearch {
33-
hosts => ["elasticsearch-es-internal-http.elk.svc:9200"]
33+
hosts => ["$${ELASTICSEARCH_HOST}:9200"]
3434
user => '$${ELASTICSEARCH_USERNAME}'
3535
password => '$${ELASTICSEARCH_PASSWORD}'
3636
index => "filebeat-%%{+yyyy.MM.dd}-000001"

0 commit comments

Comments
 (0)