elastic / integrations

Elastic Integrations
https://www.elastic.co/integrations
Other
196 stars 427 forks source link

[ Kubernetes Audit Logs ] Missing mappings for kubernetes.audit.requestObject.webhooks and kubernetes.audit.responseObject.webhooks objects #10081

Open leandrojmp opened 3 months ago

leandrojmp commented 3 months ago

Hello,

We are collecting logs from some Kubernetes cluster running on AWS EKS and since the Kubernetes integration does not support collecting logs from managed service, we were able to collect these logs using Cloudwatch and using a reroute processor we are able to parse it and store in the logs-kubernetes.audit_logs-NAMESPACE data stream, this way we can use the correct mapping for the kubernetes audit logs fields.

We just noticed that some audit logs does not have the correct mapping in the kubernetes template.

The objects kubernetes.audit.requestObject.webhooks and kubernetes.audit.responseObject.webhooks have no mapping in the component template.

Example of the fields for kubernetes.audit.requestObject.webhooks

Screenshot from 2024-06-05 16-07-51

Example of the fields for kubernetes.audit.responseObject.webhooks

Screenshot from 2024-06-05 16-06-47

There is also no mapping for kubernetes.audit.responseObject.apiVersion, kubernetes.audit.requestObject.apiVersion, kubernetes.audit.requestObject.kind and kubernetes.audit.responseObject.kind

leandrojmp commented 3 months ago

It seems that there are other nested fields under kubernetes.audit.responseObject and kubernetes.audit.requestObject that also does not have any mappings in the Kubernetes Integration.

For example:

Screenshot from 2024-06-06 11-57-32