canonical / canonical/layer-filebeat

Add close_timeout config to filebeat

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Hi,

As reported https://bugs.launchpad.net/filebeat-charm/+bug/1875662, we're seeing few instances where filebeat is holding onto older log files. @jetpackdanger pointed out https://www.elastic.co/guide/en/beats/filebeat/current/faq-deleted-files-are-not-freed.html

Any chance we can add a option to tune Filebeat's close_timeout (and possibly set a sensible default such as an hour or two)?

Contributor guide

Open the contributing guide

Research direction

Start by reading the filebeat charm's existing configuration options and the Filebeat FAQ linked in the issue. Trace how charm options become Filebeat settings, then make close_timeout configurable with the agreed default and verify that the generated configuration uses it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, observability
Issue type
Feature
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.