aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/appc
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/appc')
-rw-r--r--kubernetes/appc/resources/config/log/filebeat/log4j/filebeat.yml2
-rw-r--r--kubernetes/appc/values.yaml2
2 files changed, 3 insertions, 1 deletions
diff --git a/kubernetes/appc/resources/config/log/filebeat/log4j/filebeat.yml b/kubernetes/appc/resources/config/log/filebeat/log4j/filebeat.yml
index 52161aafad..49d818a807 100644
--- a/kubernetes/appc/resources/config/log/filebeat/log4j/filebeat.yml
+++ b/kubernetes/appc/resources/config/log/filebeat/log4j/filebeat.yml
@@ -29,7 +29,7 @@ output.logstash:
#List of logstash server ip addresses with port number.
#But, in our case, this will be the loadbalancer IP address.
#For the below property to work the loadbalancer or logstash should expose 5044 port to listen the filebeat events or port in the property should be changed appropriately.
- hosts: ["logstash.{{.Release.Namespace}}:5044"]
+ hosts: ["{{.Values.config.logstashServiceName}}.{{.Release.Namespace}}:{{.Values.config.logstashPort}}"]
#If enable will do load balancing among availabe Logstash, automatically.
loadbalance: true
diff --git a/kubernetes/appc/values.yaml b/kubernetes/appc/values.yaml
index e31980a990..b5a13ef87c 100644
--- a/kubernetes/appc/values.yaml
+++ b/kubernetes/appc/values.yaml
@@ -43,6 +43,8 @@ config:
enableClustering: true
configDir: /opt/onap/appc/data/properties
dmaapTopic: SUCCESS
+ logstashServiceName: log-ls
+ logstashPort: 5044
mysql:
nameOverride: appc-db