action #107794
openqa-logwarn is missing messages
0%
Description
It runs every hour and looks into /var/log/openqa, but this is rotated every couple of hours, so we might miss up to one hour of messages in the worst case.
History
#1
Updated by tinita over 1 year ago
- Project changed from openQA Project to openQA Infrastructure
- Category deleted (
Concrete Bugs)
#2
Updated by okurz over 1 year ago
- Priority changed from Normal to Low
- Target version set to future
Correct, we don't synchronize logwarn with the rotation of logs. Feel welcome to change the interval to partially mitigate the issue. The only thing we should keep in mind that if there is a recurring unhandled message then we would receive more emails.
#3
Updated by okurz over 1 year ago
If we want to also look into the just rotated file we could instruct logrotate to not compress that with the "delaycompress" option. There is also "prerotate", "postrotate", "firstaction", "lastaction" to be used in logrotate. With that we could instruct to call openqa_logwarn synchronized with the rotation. Reference man page of logrotate.