# Can custom logs integration in fleet ingest container logs?

**URL:** <https://discuss.elastic.co/t/can-custom-logs-integration-in-fleet-ingest-container-logs/365940>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [September 3, 2024, 10:25am UTC](https://discuss.elastic.co/t/can-custom-logs-integration-in-fleet-ingest-container-logs/365940 "2024-09-03T10:25:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhi\_Abhishek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhi_abhishek/32/101426_2.png) [@Abhi\_Abhishek](https://discuss.elastic.co/u/Abhi_Abhishek)\
**Post date:** [September 3, 2024, 10:25am UTC](https://discuss.elastic.co/t/can-custom-logs-integration-in-fleet-ingest-container-logs/365940/1 "2024-09-03T10:25:57Z")

</div>

Hi all,  
@warkolm @Baguette  
I am trying to fetch kubernetes container logs from elastic-agents, i don't want to use Kubernetes integration to get container logs, is their a way to fetch container logs from custom logs integration by mentioning /var/log/containers/\*${kubernetes.container.id}.log path, i tried to configure it in custom logs integration but its not working.  
Is it really possible from custom logs integration if so how?

or is their any way we can mention multiple dataset names so we can segregate container logs to different indices in the Kubernetes integration itself.

With Regards,  
Abhishek M

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [September 19, 2024, 6:09pm UTC](https://discuss.elastic.co/t/can-custom-logs-integration-in-fleet-ingest-container-logs/365940/2 "2024-09-19T18:09:15Z")

</div>

Hey @Abhi_Abhishek,

In principle it should be possible to use the logs integration to collect any log, including the container logs.

Could you share the configuration you are using?

How are you deploying the agent?

Does the agent has access to the logs files, and permissions to read them?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 19, 2024, 10:10pm UTC](https://discuss.elastic.co/t/can-custom-logs-integration-in-fleet-ingest-container-logs/365940/3 "2024-09-19T22:10:20Z")

</div>

> [@Abhi\_Abhishek](#):
>
> , i don't want to use Kubernetes integration to get container logs,

Curious why??... as you can turn off everything else other than the container logs and then that is all it will do...
