{{ COMMON_LOG_DIR }}/tracking/tracking.log {
  {% for config in COMMON_TRACKING_LOG_ROTATION %}
  {{ config }}
  {% endfor %}
  compress
  create
  dateext
  dateformat -%Y%m%d-%s
  missingok
  nodelaycompress
  notifempty
  rotate 16000
  postrotate
    /usr/bin/killall -HUP rsyslogd
  endscript
  lastaction
    {% if COMMON_AWS_SYNC -%}
    {{ COMMON_AWS_S3_SYNC_SCRIPT }} -d "{{ COMMON_LOG_DIR }}/tracking/*" -b "{{ COMMON_AWS_SYNC_BUCKET }}/logs/tracking"
    {% endif -%}
  endscript
}
