We have an application, which rewrites the log file upon each run. New messages are not appended, but the old messages are cleared before new one are written. How do we monitor this situation? The check_logfiles writes a seek file (recording the already seen log file lines), hence the new entries are not evaluated.
1st try: check_logfiles --logfile ... --rotation virtual
: did not give results.
2nd try: check_logfiles --logfile ... --allyoucaneat --nosavestate
: unfortunately “nosavestate
” is not an command line option.
How do you handle the situation? Except writing a post-script, which deletes the seek file after each run.
Currently the log is not huge, hence --allyoucaneat
would be an option. Thanks!