The moderator log length is controlled by the "Moderator Log Length" option.
The admin log length is controlled by a config.php option (to prevent it from being modified within the control panel). See: https://xenforo.com/help/config-php-options/ ($config['adminLogLength'])