canonical / canonical/layer-filebeat
"Changing what is shipped" doesn't change but adds log paths
- 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
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