Bug 469735
Summary: | RFE: Improve handling of "huge" logs.... | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tom London <selinux> |
Component: | logwatch | Assignee: | Ivana Varekova <varekova> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | varekova |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-11-06 16:14:17 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tom London
2008-11-03 19:19:58 UTC
The old logs should be removed - they could stay in /var/log/messages only if logwatch was terminated/killed before it finished properly - then there is a log which informs users about remaining files. logwatch in standard version uses only log files which are not rotated - if you use --archives option then logwatch parse rotated files (messages-date) too. For now there is necessary to use this files because of logwatch use some scripts to modify the log formats before "service scripts" parse it. There is no possibility to create some option which could add limit to this temporary files - there could not be a test which check whether the /var/log/ files exceed the limit after each line (it is too much time consuming), and I think there is no need to test it per file (if logwatch fills the whole disk space then it finishes its work, remove all files and wrote this fact to output). If you think this kind of option would be really valuable for you - then we could ask upstream maintainers about their opinion. How about a simple check that just estimates the size of the copied files (from the size of the /var/log/message* files) and sees if there is more than that amount of free space? The files are preprocessing not only copied - so there is the difference between their size and size of /var/log/logfile size. Moreover if you does not use --archives only /var/log/message file is copied - not all /var/log/message*. If logwatch fill whole disk free space - it finishes. So I'm not sure whether this option is necessary/helpful. |