Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add close_timeout config to filebeat #87

Open
hloeung opened this issue Jul 26, 2021 · 0 comments
Open

Add close_timeout config to filebeat #87

hloeung opened this issue Jul 26, 2021 · 0 comments

Comments

@hloeung
Copy link

hloeung commented Jul 26, 2021

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)?

al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Feb 6, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- close_timeout
- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jun 28, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jun 28, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 18, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 22, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 22, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 22, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 22, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
al3jandrosg added a commit to al3jandrosg/layer-filebeat that referenced this issue Jul 23, 2024
Under certain scenariosFilebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm three key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Fixing: [canonical#87](canonical#87)
aieri pushed a commit that referenced this issue Jul 24, 2024
Under certain scenarios Filebeat may hold onto old
log file descriptors. There are various settings
on Filebeat to prevent this from happening. This
patch adds to the charm two key settings that
help prevent this issue:

- ignore_older
- clean_inactive

Note that while these configuration parameters used
to not be specified in the filebeat config files, they will
now always be rendered. The charm configuration
however aligns with the upstream defaults so this is
not expected to alter behavior of existing
deployments upon upgrading.

Fixing: [#87](#87)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant