Bug 303341
| Summary: | rsyslogd logs messages from vixie-cron with incorrect timestamps | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Will Woods <wwoods> | ||||
| Component: | rsyslog | Assignee: | Peter Vrabec <pvrabec> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | rawhide | CC: | redhat-bugzilla, rgerhards, theinric, tmraz | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 1.19.6-2.fc8 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2007-09-25 16:36:01 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: | |||||||
| Attachments: |
|
||||||
|
Description
Will Woods
2007-09-24 15:31:00 UTC
Just FYI, -e as parameter to rsyslogd looks better. Either set this as default or really fix this problem... Some extra info: vixie-cron uses the following calls for logging:
if (!syslog_open) {
openlog("CROND",LOG_PID,LOG_CRON);
syslog_open = 1;
}
syslog(LOG_INFO,"(%s) %s (%s)", username, event, detail)
So. Every 5 minutes, we're getting the same syslog() call from vixie-cron. And
turning on the "print every message" flag fixes the problem. So it's obviously a
bug in the ReduceRepeat code.
I think using -e is a good workaround until we can be sure this is fixed.
For the record, this is still unfixed in upstream rsyslog-1.19.6. Created attachment 204961 [details]
Proposed patch
This patch corrects the duplicated message suppression.
Fix confirmed with rsyslog-1.19.6-2.fc8. We should make sure that patch gets upstream. Rainer, see the attached patch for the duplicated message suppression. I applied the patch I received via mail yesterday, its now in CVS. |