Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

teler and custom logs / haproxy #86

Answered by dwisiswant0
dwisiswant0 asked this question in Q&A
Discussion options

You must be logged in to vote

As we don't have clear documentation on how to define log_format variables for each type of server access log, which is different (related #85). If you refer to my slides (https://dw1.io/files/teler%20-%20Protect%20Your%20WebApp.pdf) on page 30/50, the log_format required (to analysis or alerting needs) on teler is correct for all variables of the Nginx server's log_format example.

In your case (HAProxy access log), to skip (some of) log string, you also have to specify a variable name for that (will be skipped) string in log_format (which will not be analyzed by teler because it's not needed). For example:

Your HAProxy access log-line is:
Feb 6 12:14:14 localhost haproxy[14389]: 10.0.1.2…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by dwisiswant0
Comment options

You must be logged in to vote
1 reply
@dwisiswant0
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants