elastic / elastic/integrations

[docker]: Add support for podman logs

Open
#15,458 0 comments 4 reactions 0 assignees View on GitHub
Integration:docker needs:triage Team:obs-ds-hosted-services
Dominant language
Handlebars
Stars
333
Forks
647
Avg merge
3d 4h
Merged PRs (30d)
209

Description

### Integration Name

Docker [docker]

### Dataset Name

logs-docker.container_logs

### Integration Version

2.14.0

### Agent Version

9.0.3

### OS Version and Architecture

Ubuntu 24.04.3 LTS

### User Goal

I want to ship podman container logs over the docker integration, since podman metrics are already supported.

### Existing Features

I see multiple issues here:

- The podman socket seems not compatible to the docker socket from an API point of view to be able to use the "autodiscovery" feature of the integration
- The current docker integration searches under /var/run/docker.sock for the docker socket, and the podman socket is located under /var/run/podman/podman.sock
- It expects the docker logs to be in a specific format, which podman does not support, see [stream.yml for docker](https://github.com/elastic/integrations/blob/main/packages/docker/data_stream/container_logs/agent/stream/stream.yml.hbs) and [podman logdriver options](https://docs.podman.io/en/latest/markdown/podman-create.1.html#log-driver-driver)

### What did you see?

No logs are sent to Elasticsearch

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.