MangoES Logs Took up entire Drive space
-
There is a file /opt/mango/logs/processLog.PersistentPublisher-1.log which is 4.8 GB in size.
We lost some data again due to full disk space. I used to think it was just because we kept data for too long, but the culprit are Mango's logs not automatically being purged properly.
How can I fix this so it does not happen again?
-
The vast majority of the logs in Mango have fixed maximum sizes and rotate files when they reach that size. It does appear this hasn't been done for the persistent publisher, yet. The easiest fix that occurs to me is turning the logging on your persistent TCP publishers off (log level: none) or to the WARN/ERROR level (each persistent publisher has a select box for log level), but I'll raise the concern of limiting this file.
-
That's good to hear! I don't want to have to worry about this, or eventually forget and get caught off guard.
In the meantime I changed Log level from debug to Error in the persistent publisher for now.