podman icon indicating copy to clipboard operation
podman copied to clipboard

Expose conmon log rotation options through the REST API

Open TobiasAlexanderson opened this issue 3 months ago • 5 comments

Description

As of conmon 2.2.0, conmon supports log rotation via --log-rotate and --log-max-files. However, Podman does not currently expose these options through its rest api. This means that users managing containers through the rest api cannot configure conmon's log rotation settings directly.

Podman's rest api should be updated to support these arguments.

Work-around

It is possible to work around this by overriding conmon_path via a container.conf.d drop-in and using a wrapper that injects the arguments.

TobiasAlexanderson avatar Aug 17 '26 07:08 TobiasAlexanderson

i will take this issue

Srujansa avatar Aug 17 '26 16:08 Srujansa

Hi @TobiasAlexanderson / @containers/podman-maintainers,

I would like to work on this issue.

My proposed plan is:

  1. Update specgen.LogConfig to expose conmon log rotation options (e.g., max-file / log-max-files).
  2. Update pkg/specgenutil and libpod creation options to parse and store the rotation configuration.
  3. Pass the corresponding flags (--log-max-files, --log-rotate) to conmon in libpod/oci_conmon_common.go.
  4. Add E2E/system test coverage for the API and CLI flows.

May I be assigned to this issue?

prabhat-kumar96 avatar Aug 22 '26 22:08 prabhat-kumar96

I can't assign issues myself, but I think you can claim this with /assign @Srujansa @prabhat-kumar96

TobiasAlexanderson avatar Aug 23 '26 09:08 TobiasAlexanderson

/assign

prabhat-kumar96 avatar Aug 24 '26 01:08 prabhat-kumar96

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Sep 23 '26 01:09 github-actions[bot]