Commit d2e1bc96 by John Jarvis

Merge pull request #1485 from edx/jarv/sync-logs-again

adding steps back to sync logs explicitely
parents d1059e76 a45565a8
...@@ -19,9 +19,18 @@ ...@@ -19,9 +19,18 @@
sudo: True sudo: True
gather_facts: False gather_facts: False
tasks: tasks:
- name: Terminate existing s3 log sync
command: /usr/bin/pkill send-logs-to-s3 || true
- name: Send logs to s3
command: /edx/bin/send-logs-to-s3
# We only force a rotation of edx logs. # We only force a rotation of edx logs.
# Forced rotation of system logfiles will only # Forced rotation of system logfiles will only
# work if there hasn't already been a previous rotation # work if there hasn't already been a previous rotation
# The logrotate will also call send-logs-to-s3 but hasn't
# been updated for all servers yet.
- name: Force a log rotation which will call the log sync - name: Force a log rotation which will call the log sync
command: /usr/sbin/logrotate -f /etc/logrotate.d/hourly/{{ item }} command: /usr/sbin/logrotate -f /etc/logrotate.d/hourly/{{ item }}
with_items: with_items:
......
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