Skip to content

Commit a2e49a7

Browse files
author
Christopher M. Neill
committed
Merge branch 'SAN-4042-log-cleanup' of github.com:CodeNow/devops-scripts into SAN-4042-log-cleanup
2 parents 667d31b + cf992a5 commit a2e49a7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ansible/roles/loggly/files/archiveOldLogs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# we only want this run as root
88
if [ "root" != `whoami` ] ; then
9-
echo "It don't mean a thing if it ain't got that swing."
9+
echo "This script needs to be run as root."
1010
exit 127
1111
fi
1212

@@ -23,8 +23,8 @@ echo "Restarting rsyslogd"
2323
# but we do need to clean the filehandles after, just in case
2424
service rsyslog restart
2525

26-
# archive anything > 1wk
27-
echo "Archiving logs > 1wk"
26+
# archive anything > 6h
27+
echo "Archiving logs > 6h"
2828
mkdir -p ${archdir} 2>&1
2929
find ${logdir} -maxdepth 2 -type f -mtime +6 -name '*z' | xargs tar jcvpf ${archdir}/log-archive-${datetime}.tbz
3030
echo "Purging logs > 1wk"

0 commit comments

Comments
 (0)