I have a VM that works on the Azure cloud. It is Centos 7.8. The problem which I have is related to the /var/log/messages file. It works for several days without an issue. Then, the "messages" file gets bigger and bigger.
It gets only one message billions of times until the disk is full. It has 30GB of storage. The message is "Cannot open log file". I don't know which process is causing this error message.
Is there a way to mute this file or identify the underlying problem?
Edit: Jul 16 21:42:04 database pgagent_14: file!Can not open the logfile!
I found the root cause finally.