Container logs collected without Kubernetes metadata

Container logs were being collected directly from the 'log' input.
Container logs are now being collected using Filebeat's 'container'
input, which adds the Kubernetes meta-data to the logs.

Change-Id: I8f1e01442ee4d52c2882ae4bfd3529cc2891f075
Signed-off-by: Simon Cousineau <Simon.Cousineau@windriver.com>
This commit is contained in:
Simon Cousineau 2020-04-13 11:29:57 -04:00
parent f97b837f49
commit 2f5215f29b
1 changed files with 4 additions and 0 deletions

View File

@ -458,6 +458,10 @@ data:
- type: kubernetes
host: ${NODE_NAME}
hints.enabled: true
hints.default_config:
type: container
paths:
- /var/log/containers/*-${data.kubernetes.container.id}.log
setup-script.sh: |
#!/bin/bash
#