redpanda-data / redpanda-data/benthos

logger component rotate had some problem,can not rotate correctly

Open
#256 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
571
Forks
120
Avg merge
2d 1h
Merged PRs (30d)
18

Description

logger:
level: INFO #
format: json #json/logfmt
add_timestamp: true
static_fields:
'@service': hsm-api-repost
file:
path: /opt/benthos/log/platform.log
rotate: true
rotate_max_age_days: 10

the log file platform.log will be rotate a gz-file,that is ok. But, rotate_max_age_days: 10,can not keep other logs within 10 days.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the logger component and reproduce the issue using the configuration in the report, especially rotate and rotate_max_age_days: 10. Inspect how rotated gzip files are aged and determine why logs older than ten days remain. Done means retention consistently removes files outside the configured ten-day window, with a regression test for this configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.