Stdout logs for access logs?

69 views
Skip to first unread message

Marcinkowski, Alan

unread,
Jul 1, 2021, 4:41:05 PM7/1/21
to haproxy...@googlegroups.com

Hello,

 

Just wondering if there’s a means to get 0.12.5 of the controller to get the actual haproxy instance to log to the pod stdout?

 

Thanks for any suggestions. I’ve tried adding the following to the configmap but it didn’t help:

 

  config-global: |

    log stdout format raw local0  info

  config-defaults: |

    option httplog

  config-frontend: |

    option httplog

    http-request capture req.hdr(Host) len 64

    http-request capture req.hdr(User-Agent) len 100

 

Thanks,

 

Alan

Joao Morais

unread,
Jul 1, 2021, 4:52:04 PM7/1/21
to haproxy...@googlegroups.com
Hello! This will work if you run haproxy as a sidecar container, this
example[1] should be of some help.

Maybe there is a way to fork the embedded haproxy process in order to
log to stdout, but I couldn't find a clean way to do it. Anyway using
a sidecar is a nice way to have controller and proxy with their own
separated log streaming.

[1] https://haproxy-ingress.github.io/docs/examples/external-haproxy/

~jm
Reply all
Reply to author
Forward
0 new messages