Commit b1b438ba by Feanil Patel

Merge pull request #1240 from edx/feanil/hourly_logrotate

Feanil/hourly logrotate
parents f9983231 b70dfd03
...@@ -62,10 +62,14 @@ ...@@ -62,10 +62,14 @@
- name: Install logrotate configuration for edX - name: Install logrotate configuration for edX
template: > template: >
dest=/etc/logrotate.d/edx-services dest=/etc/logrotate.d/hourly/edx-services
src=etc/logrotate.d/edx_logrotate.j2 src=etc/logrotate.d/hourly/edx_logrotate.j2
owner=root group=root mode=644 owner=root group=root mode=644
# This can be removed after new release of edX
- name: Remove old edx-services config from /etc/logrotate.d
file: path=/etc/logrotate.d/edx-services state=absent
# This is in common to keep all logrotation config # This is in common to keep all logrotation config
# in the same role # in the same role
- name: Create hourly subdirectory in logrotate.d - name: Create hourly subdirectory in logrotate.d
......
...@@ -4,9 +4,13 @@ ...@@ -4,9 +4,13 @@
copytruncate copytruncate
delaycompress delaycompress
dateext dateext
dateformat -%Y%m%d-%s
missingok missingok
notifempty notifempty
daily daily
rotate 90 rotate 90
size 1M size 1M
postrotate
/usr/bin/killall -HUP rsyslogd
endscript
} }
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