Skip to content

Instantly share code, notes, and snippets.

@yunghoy
Last active February 8, 2017 19:15
Show Gist options
  • Select an option

  • Save yunghoy/7807d567501b90e1e8c33e7a4217d8ff to your computer and use it in GitHub Desktop.

Select an option

Save yunghoy/7807d567501b90e1e8c33e7a4217d8ff to your computer and use it in GitHub Desktop.
http://blog.haproxy.com/2012/10/29/haproxy-log-customization/
https://goaccess.io/man#custom-log
Default log format
TCP log format
1
2
log-format %Ci:%Cp [%t] %ft %b/%s %Tw/%Tc/%Tt %B %ts
%ac/%fc/%bc/%sc/%rc %sq/%bq
HTTP log format
1
2
log-format %Ci:%Cp [%t] %ft %b/%s %Tq/%Tw/%Tc/%Tr/%Tt %st %B %cc
%cs %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r
CLF log format
1
2
3
log-format %{+Q}o %{-Q}Ci - - [%T] %r %st %B "" "" %Cp
%ms %ft %b %s %Tq %Tw %Tc %Tr %Tt %tsc %ac %fc
%bc %sc %rc %sq %bq %cc %cs %hrl %hsl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment