Commit 5ffb37b2 by Feanil Patel

Do syncing as a lastaction so that we don't rotate unzipped log files.

parent f296e1ab
......@@ -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