Log rotation The logs are rotated automatically by AFD itself, either by date or size. The number at the end of the filename is the log number where zero is always the current log file. The higher the log number the older will be the log file. In $AFD_WORK_DIR/etc/AFD_CONFIG one can configure when a log file is rotated and how many logs are kept. For example if one wants that the EVENT_LOG is rotated after it's size reaches 3 MiB and wants to keep 4 logs, the following entries are needed: MAX_EVE_LOGFILE_SIZE 3145728 MAX_EVENT_LOG_FILES 4