Skip to content

Conversation

@corsojulian7
Copy link

Allow users to add custom fields to logs at the end of the line and still using haproxy_log_analysis.

Line Example adding encrypt and protocol at the end:
Dec 18 13:29:38 localhost haproxy[103935]: 45.163.31.4:48486 [18/Dec/2020:13:29:38.458] xxxx~ xxxxx/xxxxx-prd 0/0/1/312/313 200 624 - - ---- 5/5/3/1/0 0/0 {172.30.2.172|604||} {Restlet-Framework/2.2.3|473|||} "POST /CustomEndpoint/Endpoint HTTP/1.1" ECDHE-RSA-AES256-SHA384 TLSv1.2

@gforcada
Copy link
Owner

Hi, thanks for taking your time to report issues and improvements for haproxy_log_analysis! 💯

I see that CI did not work, maybe because it is still set up to use travis and travis is closing. I will double check if tests do pass.

In general I'm fine with the change, it would be nice if you can add this specific example that you add on a test to ensure that it is parsed as valid after your changes.

Do not hesitate to ping me again if I don't reply within a few days, I'm rather busy lately, so I can easily forget about this issue. 😅

@corsojulian7
Copy link
Author

Hi, thanks for taking your time to report issues and improvements for haproxy_log_analysis! 💯

I see that CI did not work, maybe because it is still set up to use travis and travis is closing. I will double check if tests do pass.

In general I'm fine with the change, it would be nice if you can add this specific example that you add on a test to ensure that it is parsed as valid after your changes.

Do not hesitate to ping me again if I don't reply within a few days, I'm rather busy lately, so I can easily forget about this issue. 😅

Done!
Commit: #4b7556e - [ADD] Custom Logline in tests

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants