File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
jobs/ingestor_syslog/templates/bin Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,10 @@ case $1 in
94
94
echo " } #close filters" >> ${JOB_DIR} /config/logstash.conf
95
95
96
96
# clear persistent queue if the upgrade failed last run
97
- if tail -80 $LOG_DIR /$JOB_NAME .stdout.log | grep ' QueueUpgrade - Logstash was unable to upgrade your persistent queue data' > /dev/null ; then
97
+ if cat $LOG_DIR /$JOB_NAME .stdout.log | grep -a ' QueueUpgrade - Logstash was unable to upgrade your persistent queue data' > /dev/null ; then
98
98
mkdir ${STORE_DIR} /oldqueue.$$
99
99
mv ${STORE_DIR} /queue ${STORE_DIR} /.lock ${STORE_DIR} /dead_letter_queue ${STORE_DIR} /uuid ${STORE_DIR} /oldqueue.$$
100
+ mv $LOG_DIR /$JOB_NAME .stdout.log $LOG_DIR /$JOB_NAME .stdout.log.old
100
101
fi
101
102
102
103
exec chpst -u vcap:vcap /var/vcap/packages/logstash/bin/logstash \
You can’t perform that action at this time.
0 commit comments