Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logformat for haproxy log #1656

Open
zefferno opened this issue Jan 21, 2020 · 0 comments
Open

logformat for haproxy log #1656

zefferno opened this issue Jan 21, 2020 · 0 comments

Comments

@zefferno
Copy link

@zefferno zefferno commented Jan 21, 2020

Hi,

Could you assist on how to create custom log format for parsing haproxy logs based on the following
log-format:
log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %sslv %sslc %{+Q}r"

Description of fields above:
https://www.haproxy.com/documentation/hapee/1-7r1/traffic-management/log-format-rules/

Example:
80.1.2.3:2842 [21/Jan/2020:20:51:50.065] frontend~ / 0/0/1/6/7 200 649 - - ---- 233/233/3/2/0 0/0 {>|} TLSv1.3 TLS_AES_256_GCM_SHA384 "GET /path...""

Thanks!

@zefferno zefferno changed the title logformat for haproxy log and error log logformat for haproxy log Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.