Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-14612

Improve logging for KNI haproxy

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None

      Improve logging format of KNI haproxy logs to display tcplogs + frondend IP and frontend port.

      The current logging format is not very verbose:

      <134>Jun  2 22:54:02 haproxy[11]: Connect from ::1:42424 to ::1:9445 (main/TCP)
      <134>Jun  2 22:54:04 haproxy[11]: Connect from ::1:42436 to ::1:9445 (main/TCP)
      <134>Jun  2 22:54:04 haproxy[11]: Connect from ::1:42446 to ::1:9445 (main/TCP)
      

      It lacks critical information for troubleshooting, such as load-balancing destination and timestamps.
      https://www.haproxy.com/blog/introduction-to-haproxy-logging recommends the following for tcp mode:

      When in TCP mode, which is set by adding mode tcp, you should also add [option tcplog](https://www.haproxy.com/documentation/hapee/1-8r1/onepage/#option%20tcplog).

            akaris@redhat.com Andreas Karis
            akaris@redhat.com Andreas Karis
            Sergio Regidor de la Rosa Sergio Regidor de la Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: