Skip to content

Commit

Permalink
Delete logfiles on stats server to align with Test SP privacy policy
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#320 for details
  • Loading branch information
Alex Stuart committed Sep 7, 2021
1 parent a533196 commit 3a944a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions utilities/stats-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ rsync -at --exclude modsec* stats@test-idp:/var/log/httpd/* $logslocation/test-i
rsync -at stats@test-idp:/opt/shibboleth-idp/logs/idp-audit* $logslocation/test-idp/

# Logs from Test SP
rsync -at --exclude modsec* stats@test-sp:/var/log/httpd/* $logslocation/test-sp/
rsync -at stats@test-sp:/var/log/shibboleth/shibd* $logslocation/test-sp/
rsync -at stats@test-sp:/var/log/shibboleth/transaction* $logslocation/test-sp/
#
# The Test SP has a cronjob to remove logs with PII > 30 days old, --delete keeps repo in sync
#
rsync --delete -at --exclude modsec* stats@test-sp:/var/log/httpd/* $logslocation/test-sp/
rsync --delete -at stats@test-sp:/var/log/shibboleth/shibd* $logslocation/test-sp/
rsync --delete -at stats@test-sp:/var/log/shibboleth/transaction* $logslocation/test-sp/

# Exit happily
exit 0

0 comments on commit 3a944a6

Please sign in to comment.