Commit f1407cd5 by Feanil Patel

Merge pull request #1491 from edx/feanil/fix_log_syncing

Do syncing as a lastaction so that we don't rotate unzipped log files.
parents f296e1ab 5ffb37b2
......@@ -12,6 +12,8 @@
size 1M
postrotate
/usr/bin/killall -HUP rsyslogd
endscript
lastaction
{% if COMMON_AWS_SYNC -%}
for dir in `ls {{ COMMON_LOG_DIR }}`; do
if echo $dir | grep -qv tracking; then
......
......@@ -10,6 +10,8 @@
size 1M
postrotate
/usr/bin/killall -HUP rsyslogd
endscript
lastaction
{% if COMMON_AWS_SYNC -%}
{{ aws_s3_sync_script }} -d "{{ COMMON_LOG_DIR }}/tracking/*" -b "{{ COMMON_AWS_SYNC_BUCKET }}/logs/tracking"
{% endif -%}
......
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