Skip to content

Commit 5651744

Browse files
committed
Update archiveOldLogs.sh
1 parent 45092ca commit 5651744

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/roles/loggly/files/archiveOldLogs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)