From d8b332d83b6bfe8b05b1743285fb1e07a3c189d5 Mon Sep 17 00:00:00 2001 From: Adnan Rahic Date: Wed, 6 May 2020 16:22:01 +0200 Subject: [PATCH] added 'logs-receiver-urls' vs. 'logs-receiver-url' for k8s enrichment --- lib/plugins/output-filter/kubernetes-enrichment.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/plugins/output-filter/kubernetes-enrichment.js b/lib/plugins/output-filter/kubernetes-enrichment.js index 912b48ff..88dbb8e7 100644 --- a/lib/plugins/output-filter/kubernetes-enrichment.js +++ b/lib/plugins/output-filter/kubernetes-enrichment.js @@ -119,8 +119,11 @@ function checkLogsEnabled (pod, data, context, config) { function checkLogsReceiverUrl (pod, data, context) { var annotations = pod.metadata.annotations if (annotations && annotations['sematext.com/logs-receiver-url']) { - context.logsReceiver = parser.parseReceiverList(annotations['sematext.com/logs-receiver-url']) + context.logsReceivers = parser.parseReceiverList(annotations['sematext.com/logs-receiver-urls']) + return } + + context.logsReceiver = annotations['sematext.com/logs-receiver-url'] } function addLogsIndex (pod, data) {