I used the Server Health tool and it discovered that there were 2 monstrously large build logs (4.1GB and 13GB). I wasn't sure what the right way to fix this was but here's what I did:
I went directly to the log files in system/messages and did something like this: echo "Deleted build log because it was 13GB." > system/messages/CH94/88894.msg5
This reduced the excessive amount of disk space used. However, when I run the server health report, it still thinks the files are the same size and the log files now read, for example:
Attempt to read outside of build log file. It seems the build log "/data/teamCity/system/messages/CH94/88894.msg5" is broken. This can be caused by incorrect server shutdown. Please contact your system administrator.
I have 2 questions:
1. Is there now a way to make the log file display the plain text I added to it without displaying an error?
2. What is the right way to delete just one or two large build logs?