# Container logs not ingesting properly to elastic fleet agents

**URL:** <https://discuss.elastic.co/t/container-logs-not-ingesting-properly-to-elastic-fleet-agents/321377>\
**Category:** Logs\
**Created:** [December 16, 2022, 6:54am UTC](https://discuss.elastic.co/t/container-logs-not-ingesting-properly-to-elastic-fleet-agents/321377 "2022-12-16T06:54:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnaabylle](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@krishnaabylle](https://discuss.elastic.co/u/krishnaabylle)\
**Post date:** [December 16, 2022, 6:54am UTC](https://discuss.elastic.co/t/container-logs-not-ingesting-properly-to-elastic-fleet-agents/321377/1 "2022-12-16T06:54:40Z")

</div>

Hi,  
As we rolled out our elastic agents in new clusters through fleets, all logs are coming to Metrics-\* and Logs-\* from Kubernetes containers. As per documentation all the logs should come to Logs-\* and Metrics-\*.  
We have each fleet agent policy per environment .our kubernetes agent policies were split into:  
aks-app-infra-stg (fleet namespace -stg)  
aks-app-infra-master-int (fleet namespace - int)  
inside aks-app-infra-master-int (fleet namespace - int) inside kubernetes int if we edit collect Kubernetes container logs and go to advanced options the ingestion path was showing as logs-kubernetes.container\_logs-1.17.2. This means all the data is coming to logs  
But when we go to discover tab It is sending data to Metrics.  
Our main concern here is we are not seeing the actual logs coming. We need to know why its showing for metrics and not for logs when we see in discover  
and also need to know where the actual logs we are getting.

(running with v8.5.2)  
Thanks,  
Krishna Priya.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 13, 2023, 6:55am UTC](https://discuss.elastic.co/t/container-logs-not-ingesting-properly-to-elastic-fleet-agents/321377/2 "2023-01-13T06:55:00Z")

</div>

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