Log Level 1 isn't logging user login/logout activity

Nextcloud version (eg, 18.0.2): 20.0.2
Operating system and version (eg, Ubuntu 20.04): 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 7.1): 7.4.3

The issue you are facing:

I’m trying to build my own audit log of user activity by importing the logs into Cloudwatch. nextcloud.log is being imported, but that file isn’t reporting any activity for users logins, I think.

I see these log entries when a user logs in, but is that really all that’s reported? It doesn’t even report the name or UID (I’m using LDAP login)

{
    "reqId": "iLq25IML0CZc5e85msK4",
    "level": 1,
    "time": "2020-12-07T12:00:01-06:00",
    "remoteAddr": "",
    "user": "--",
    "app": "cli",
    "method": "",
    "url": "--",
    "message": "Memcache \\OC\\Memcache\\APCu not available for local cache",
    "userAgent": "--",
    "version": "20.0.2.2"
}

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Set log level to 1 or 0 in config.php
  2. Restart apache
  3. Login to Nextcloud

The output of your Nextcloud log in Admin > Logging:

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '1',
  'logtimezone' => 'America/Chicago',
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'log_rotate_size' => '0',