newsyslog is a program used in FreeBSD servers to rotate log files.
Many programs write to log files, this will grow over time and system administrator have to delete these files. newsyslog help system administarors to rotate log files.
In cpanel FreeBSD servers, exim mail server log is stored in /var/log/exim folder. These files are not rotated by default by cpanel. On my server, i just deleted a log file of size 1 GB. On Linux Cpanel servers, you don't have to do this yourself, cpanel will setup everything properly. On FreeBSD you have to rotate log your self.
To rotate exim and apache logs in cpanel servers, add following content to end of /etc/newsyslog.conf file.
# vi /etc/newsyslog.conf /var/log/exim/mainlog 600 4 * @T00 B /var/log/exim/paniclog 600 4 * @T00 B /var/log/exim/rejectlog 600 4 * @T00 B /usr/local/apache/logs/access_log 600 4 * @T00 B /usr/local/apache/logs/error_log 600 4 * @T00 B /usr/local/apache/logs/suexec_log 600 4 * @T00 B
Questions? Concerns? Comments? We want to hear from you!
Drop us a line with whatever is on your mind and we will get back to you ASAP!!