# Gather logs from podman containers

**URL:** https://discuss.elastic.co/t/gather-logs-from-podman-containers/333073
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [May 10, 2023, 10:44am UTC](https://discuss.elastic.co/t/gather-logs-from-podman-containers/333073 "2023-05-10T10:44:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [May 10, 2023, 10:44am UTC](https://discuss.elastic.co/t/gather-logs-from-podman-containers/333073/1 "2023-05-10T10:44:40Z")

</div>

Hi,

If I understand the documentation correctly the best practice for shipping logs of docker-container is the following:

using container input

```auto
- type: container
  stream: stdout
  paths:
    - "/var/log/containers/*.log"

```

And if I need metadata of the container the processor add\_docker\_metadata could help:

```auto
processors:
      - add_docker_metadata:

```

But unfortunately I am not able to use docker, I need to use podman in rootless mode.

Is there any way to use the processor with podman to enrich the event with podman's metadata?

Thanks,  
Andreas

---

<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: [June 7, 2023, 12:45pm UTC](https://discuss.elastic.co/t/gather-logs-from-podman-containers/333073/2 "2023-06-07T12:45:36Z")

</div>

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