canonical / canonical/layer-filebeat

"Changing what is shipped" doesn't change but adds log paths

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

Description

The [documentation](https://charmhub.io/filebeat) indicates that the operator can change the log files that are shipped with the 'logpath' config item:

```
Changing what is shipped
By default, the Filebeat charm will ship any container logs present in /var/lib/docker/containers as well as everything in:

/var/log/*/*.log
/var/log/*.log

If you'd rather target specific log files:

juju config filebeat logpath=/var/log/mylog.log
```
But the actual behaviour is that the contents of `logpath` are added to the configuration files, in addition to the defaults.
I believe that the charm should do as documented, which is to replace "what is shipped".

Contributor guide

Open the contributing guide

Research direction

Read the Filebeat charm documentation at https://charmhub.io/filebeat and trace the handling of the `logpath` configuration item. Confirm how the default paths and configured paths are written to the configuration files; done means setting `logpath` replaces the defaults rather than adding to them.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.