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

WIP HAProxy logging #62

Closed
wants to merge 4 commits into from
Closed

WIP HAProxy logging #62

wants to merge 4 commits into from

Conversation

janeczku
Copy link

WIP

  • Fixes rsyslog configuration parsing errors (lb-service-haproxy: Rsyslogd does not seem to be working properly. rancher#7865)
  • Changes logrotate config to discard haproxy logs after 1 week
  • Enables HAProxy global logging to rsyslog unix socket by default. Note, that this will only log process-level events (e.g.start-up/down, errors) but not traffic logs. If user wants traffic logs he would add a custom haproxy.cfg like this:
   lb_config:
     config: |-
       defaults
         log global
         option httplog

Todo:

  • Implement logrotate periodic runs

- upgrade to rsyslog v8 syntax
- add /dev/log socket in haproxy chroot
This enables just logging of global process-level events (system
errors, start/stop, etc..). To enable per-instance logging of events
and specifically traffic user has to configure custom haproxy.cfg.
@alena1108
Copy link
Contributor

@janeczku thanks for the PR! How fast process-level evens can grow? I'm a bit concerned about growing logs in error scenarios.

@alena1108 alena1108 changed the title HAProxy logging WIP HAProxy logging Mar 16, 2017
@superseb
Copy link

@janeczku What is needed to get this going again?

@janeczku
Copy link
Author

@superseb There is no cron process running in the container hence logrotate is not working at all.

@superseb
Copy link

Adding as reference rancher/rancher#7591

@alena1108
Copy link
Contributor

Closing as with the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches

@alena1108 alena1108 closed this Nov 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants