-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
processor.add_kubernetes_metadata.matchers.resource_type setting won't work #27476
Comments
i try change type to "log", not helping. |
Pinging @elastic/integrations (Team:Integrations) |
Hi! Your configuration looks quite similar to the example at https://www.elastic.co/guide/en/beats/filebeat/current/add-kubernetes-metadata.html#_logs_path. Could you provide the version of Filebeat you are using? @jsoriano does this ring any bells? Could it be a regression? |
No idea, I think that there haven't been significative changes there recently. We would need to see the input configuration, and know on what paths the logs are. The configuration in @supersxlx could you please share your input configuration and an event that is not being correctly enriched with k8s metadata? |
@tetianakravchenko do you think it could be solved by your changes at #28868? If so, we can close this one :) |
@ChrsMark yes, I think it should be fixed in #28868 @supersxlx if you are trying to read logs from stdout, with the PR above config should look like:
note that input path must be a subdirectory of |
Hi:
I started a filebeat on my kubernetes master node. trying to add "pod_name" to index;but filebeat reported “Error extracting container id - source value does not contain matcher's logs_path '/var/lib/kubelet/pods/'”
My filebeat config:
I looked "matchers.go" , if my setting was right, then it will use "pod_id" do the match. but it's not .
So , what did i do wrong ? My input type is "container" , is this one get wrong?
The text was updated successfully, but these errors were encountered: