We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45092ca commit 5651744Copy full SHA for 5651744
1 file changed
ansible/roles/loggly/files/archiveOldLogs.sh
@@ -23,8 +23,8 @@ echo "Restarting rsyslogd"
23
# but we do need to clean the filehandles after, just in case
24
service rsyslog restart
25
26
-# archive anything > 1wk
27
-echo "Archiving logs > 1wk"
+# archive anything > 6h
+echo "Archiving logs > 6h"
28
mkdir -p ${archdir} 2>&1
29
find ${logdir} -maxdepth 2 -type f -mtime +6 -name '*z' | xargs tar jcvpf ${archdir}/log-archive-${datetime}.tbz
30
echo "Purging logs > 1wk"
0 commit comments