Page MenuHomePhabricator

Change HAProxy log-format to support missing information
Closed, ResolvedPublic

Description

Currently our HAProxy log-format produces information used by mtail to generate metrics.

For Benthos we need a lot more fields and captured headers, specifically:

  • Edit log format to include %ci:%cp %ID [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %HM %HPO %HQ %HV %[ssl_fc_sni]/%sslv/%sslc fields
  • Capture missing request/response headers needed by logging

Event Timeline

Change rMW1005548596d0 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] haproxy: configure extended logging (preparatory for Benthos)

https://gerrit.wikimedia.org/r/1005548

Change rMW1005548596d0 merged by Fabfur:

[operations/puppet@production] haproxy: configure extended logging (preparatory for Benthos)

https://gerrit.wikimedia.org/r/1005548

Change 1006489 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] haproxy: enable extended logformat for cp4037

https://gerrit.wikimedia.org/r/1006489

Change 1006489 merged by Fabfur:

[operations/puppet@production] haproxy: enable extended logformat for cp4037

https://gerrit.wikimedia.org/r/1006489

Applied to cp4037 the new log format to check eventual errors

This can be closed as the new log format is tested and ready to be enabled fleet-wide with a hiera switch along with the Benthos installation.