NMSROOT/bin/logrot.pl is designed to do exactly this. See the online documentation on how to configure it, but essentially you run NMSROOT/bin/perl NMSROOT/bin/logrot.pl -c and follow the menu prompts.
If you need to truncate a file in an emergency, just run NMSROOT/bin/logrot_trunc on it.