Well, just to make it clear, the log:
doesn't contain any kubernetes metadata. That is the application server log.
I'm trying to do quite a simple thing. I have a pod in which two containers are running ( application container and a filebeat container ). The pod defines also a few labels, like app-name, deploymentConfig name etc. I have also tried to do somethig like:
but that is also not working. I don't see a field app-name in elastic.
I can think of workaround that I set an environment variable(s) for filebeat container with namesapce and pod name, and then add them in the filebeat.yml:
but I would expect that this can be done differently.