File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,16 +18,21 @@ spec:
1818 type : string
1919 value : logstash-${{ random(8) }}
2020 inputs :
21- elasticsearch_username :
21+ ELASTICSEARCH_USERNAME :
2222 description : " Elasticsearch username for Logstash output"
2323 type : string
2424 default : " elastic"
2525 required : true
26- elasticsearch_password :
26+ ELASTICSEARCH_PASSWORD :
2727 description : " Elasticsearch password for Logstash output"
2828 type : string
2929 default : " "
3030 required : true
31+ ELASTICSEARCH_HOST :
32+ description : " Elasticsearch host for Logstash output"
33+ type : string
34+ default : " elasticsearch.logging.svc.cluster.local:9200"
35+ required : true
3136
3237---
3338apiVersion : v1
8792
8893 output {
8994 elasticsearch {
90- hosts => ["http://elasticsearch.logging.svc.cluster.local:9200 "]
91- user => "${ELASTICSEARCH_USERNAME}"
92- password => "${ELASTICSEARCH_PASSWORD}"
95+ hosts => ["http://${{ inputs.ELASTICSEARCH_HOST }} "]
96+ user => "${{ inputs. ELASTICSEARCH_USERNAME } }"
97+ password => "${{ inputs. ELASTICSEARCH_PASSWORD } }"
9398 index => "logstash-%{+YYYY.MM.dd}"
9499 ilm_enabled => false
95100 }
You can’t perform that action at this time.
0 commit comments