Skip to content

Commit

Permalink
added 'logs-receiver-urls' vs. 'logs-receiver-url' for k8s enrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanrahic committed May 6, 2020
1 parent 134ae4e commit d8b332d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/plugins/output-filter/kubernetes-enrichment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8b332d

Please sign in to comment.