We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 667d31b + cf992a5 commit a2e49a7Copy full SHA for a2e49a7
1 file changed
ansible/roles/loggly/files/archiveOldLogs.sh
@@ -6,7 +6,7 @@
6
7
# we only want this run as root
8
if [ "root" != `whoami` ] ; then
9
- echo "It don't mean a thing if it ain't got that swing."
+ echo "This script needs to be run as root."
10
exit 127
11
fi
12
@@ -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