Bug 1223792
| Summary: | [RFE] add timestamps to HAProxy logs | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Evgheni Dereveanchin <ederevea> |
| Component: | Logging | Assignee: | Luke Meyer <lmeyer> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | urgent | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.2.0 | CC: | bperkins, erich, jhonce, pep, tiwillia |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-24 23:02:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Evgheni Dereveanchin
2015-05-21 12:57:35 UTC
HAProxy log customization requires a minimum of haproxy 1.5 dev17 Haproxy 1.4 does not support customizing the log output. You only have a few options to choose from: default (specifying no logging option), "tcplog", and "httplog". These options come with a specific set of fields that are printed in each log message. The fields that are printed cannot be customized. In the link provided by Jhon[0], the log messages shown have timestamps. These were added by syslog. The documentation does not detail the timestamp field and mentions that syslog will add fields before haproxy log messages. We do not use syslog to log from haproxy, so no timestamps are added. Unfortunately, there is nothing we can do about this bug at this time without upgrading the haproxy cartridge to at least haproxy-1.5.dev8. See http://blog.haproxy.com/2012/10/29/haproxy-log-customization/ for the customization options available with haproxy-1.5.dev8 There are currently no plans to update the haproxy-1.4 cartridge to haproxy-1.5.x for OpenShift v2. Therefore, I am closing this WONTFIX. [0] https://cbonte.github.io/haproxy-dconv/configuration-1.4.html#8.2 (In reply to Timothy Williams from comment #11) > In the link provided by Jhon[0], the log messages shown have timestamps. > These were added by syslog. The documentation does not detail the timestamp > field and mentions that syslog will add fields before haproxy log messages. > We do not use syslog to log from haproxy, so no timestamps are added. Maybe worth mentioning that haproxy logs in the gears are processed by logshifter, and logshifter can be configured to send logs to syslog instead of (or in addition to) local files inside the gear. Just a reminder in case it helps. |