Skip to content

Instantly share code, notes, and snippets.

@jazzl0ver
Created February 14, 2024 11:55
Show Gist options
  • Save jazzl0ver/1775ffde5821fac6da45311956204315 to your computer and use it in GitHub Desktop.
Save jazzl0ver/1775ffde5821fac6da45311956204315 to your computer and use it in GitHub Desktop.
teler log setup for haproxy
log_format: |
$x $x $x $remote_addr:$x [$time_local] $x $x $x $x $x $x "$request_method $request_uri $request_protocol" $status {$x} $x $x $x $x $x $x
@jazzl0ver
Copy link
Author

Log sample:

Feb 9 09:00:00 192.168.1.1:42814 [09/Feb/2024:08:59:58.051] lb-useast~ backend/api-elb5 0/2000/0/0/1/12/2013 ---- 27/27/2/0/0 0/0 "POST /location HTTP/1.1" 200 {||||||506|Dalvik/2.1.0 (Linux; U; Android 13)} ireq_size=831 resp_size=123 172.31.43.71:4443 192.168.4.169:443 ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment