Commit 990860fa by Carson Gee

Updated to use COMMON_LOG_DIR

parent 87d4db86
if ($programname == 'haproxy' and $syslogseverity-text == 'info') then -/var/log/haproxy/haproxy-info.log
& ~
if ($programname == 'haproxy' and $syslogseverity-text == 'notice') then -/var/log/haproxy/haproxy-notice.log
& ~
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
notify: haproxy | restart haproxy notify: haproxy | restart haproxy
- name: haproxy | install logrotate - name: haproxy | install logrotate
copy: src=haproxy.logrotate dest=/etc/logrotate.d/haproxy mode=0644 template: src=haproxy.logrotate.j2 dest=/etc/logrotate.d/haproxy mode=0644
- name: haproxy | install rsyslog conf - name: haproxy | install rsyslog conf
copy: src=haproxy.rsyslog dest=/etc/rsyslog.d/haproxy.conf mode=0644 template: src=haproxy.rsyslog.j2 dest=/etc/rsyslog.d/haproxy.conf mode=0644
notify: haproxy | restart rsyslog notify: haproxy | restart rsyslog
- name: haproxy | make sure haproxy has started - name: haproxy | make sure haproxy has started
......
/var/log/haproxy/*.log { {{ COMMON_LOG_DIR }}/haproxy/*.log {
weekly weekly
missingok missingok
rotate 7 rotate 7
......
if ($programname == 'haproxy' and $syslogseverity-text == 'info') then -{{ COMMON_LOG_DIR }}/haproxy/haproxy-info.log
& ~
if ($programname == 'haproxy' and $syslogseverity-text == 'notice') then -{{ COMMON_LOG_DIR }}/haproxy/haproxy-notice.log
& ~
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment