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

New Feature: Skip Health Check Logs option, Large Log files #198

Closed
joel72265 opened this issue May 20, 2024 · 3 comments
Closed

New Feature: Skip Health Check Logs option, Large Log files #198

joel72265 opened this issue May 20, 2024 · 3 comments

Comments

@joel72265
Copy link

Thank you for a wonderful application.

New Feature: I am using HAproxy (with Health checks enabled) and postfix. This generates logs every second and quickly uses up the free space in postfix. Please have an environment variable to either disable logging Health checks or have some type of logrotate feature.

Docker-postfix

I found related posts but the logs are different #69

@bokysan
Copy link
Owner

bokysan commented May 20, 2024

There's no way for me to automagically know how people are going to use this image or where the healthchecks are going to come from, how often and if people will want them logged or not. Hence there is no simple way to "disable logging of health checks".

You, can, however, disable them yourself by simply adding additional rules to rsyslog into /etc/rsyslog.d-before/.

See example how this is implemented for local healthchecks.

@bokysan bokysan closed this as completed May 20, 2024
@joel72265
Copy link
Author

thank you that is help.

Suggestion: maybe if there is a possibility to have an option like -e IGNORE_HOSTS=192.168.1.X1, 192.168.1.X2 to not store logs from certain hosts that would be great

@bokysan
Copy link
Owner

bokysan commented Jun 11, 2024

Sure, that sounds like a good idea. Pull requests are welcome :)

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

No branches or pull requests

2 participants