Structured logging (json) via Kubernetes hinted autodiscover

(Raman Gupta) #1

I am using autodiscovery with hints in Kubernetes.

Many of my containers log with single JSON per-line structured logging as described @

However, looking at the hints documentation @, I don't see the right hint to tell filebeat to parse the container logs as JSON-per-line.

How do I do this?

(Jaime Soriano) #2

At the moment not all input settings are exposed via annotations.
If you need to set up some configuration not available via hints or modules, you can use the co.elastic.logs/raw annotation, that allows to define inline a whole input or module.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.