/var/log/IecServerLog.log
{
    rotate 7         # Keep a maximum of 7 rotated log files (including the original)
    size 1024k       # Rotate the log file if it reaches 1024 kilobytes in size
    missingok        # If the log file is missing, continue without error
    notifempty       # Do not rotate if the log file is empty
    delaycompress    # Delay compression until the next rotation cycle
    compress         # Compress rotated log files using gzip
    postrotate       # Commands to run after rotating the log (optional)
        /usr/lib/rsyslog/rsyslog-rotate   # Example: Execute the rsyslog rotate script
    endscript        # End of postrotate block
}
