Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

logger component rotate had some problem,can not rotate correctly

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
Go
Stars
571
Forks
121
Avg merge
2d 3h
Merged PRs (30d)
17

Getting set up

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.

More from redpanda-data/benthos

All issues in redpanda-data/benthos

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.