Nextcloud logging low level events desite configuration

Greetings!**

The Basics**

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • OpenSuse Leap 15.6
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.66
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • Multiple versions ago

Summary of the issue you are facing:

Nextcloud is generating low level logs despite being set to log level of 3 in config.php.
I noticed this issue with the old version I was running. It is now up to date but still recording Level 0 events in multiple log files:

./ocs-provider/nextcloud.log
./nextcloud.log
./ocs/nextcloud.log
./data/nextcloud.log

config/config.php has:

  'log_type' => 'file',
  'logfile' => 'nextcloud.log',
  'loglevel' => 3,
  'logdateformat' => 'F d, Y H:i:s',

occ agrees:

php occ config:list system | grep log
        "log_type": "file",
        "logfile": "nextcloud.log",
        "loglevel": 3,
        "logdateformat": "F d, Y H:i:s",

Is there anything else that can be modifying the log level?

List of enabled apps

Enabled:

  • activity: 6.0.0
  • app_api: 33.0.0
  • bruteforcesettings: 6.0.0
  • calendar: 6.2.2
  • circles: 33.0.0
  • cloud_federation_api: 1.17.0
  • comments: 1.23.0
  • contacts: 8.4.4
  • contactsinteraction: 1.14.1
  • dashboard: 7.13.0
  • dav: 1.36.0
  • encryption: 2.21.0
  • federatedfilesharing: 1.23.0
  • federation: 1.23.0
  • files: 2.5.0
  • files_downloadlimit: 5.1.0
  • files_pdfviewer: 6.0.0
  • files_reminders: 1.6.0
  • files_sharing: 1.25.2
  • files_trashbin: 1.23.0
  • files_versions: 1.26.0
  • firstrunwizard: 6.0.0
  • logreader: 6.0.0
  • lookup_server_connector: 1.21.0
  • nextcloud_announcements: 5.0.0
  • notifications: 6.0.0
  • oauth2: 1.21.0
  • password_policy: 5.0.0
  • photos: 6.0.0
  • privacy: 5.0.0
  • profile: 1.2.0
  • provisioning_api: 1.23.0
  • recommendations: 6.0.0
  • related_resources: 4.0.0
  • serverinfo: 5.0.0
  • settings: 1.16.0
  • sharebymail: 1.23.0
  • support: 5.0.0
  • survey_client: 5.0.0
  • systemtags: 1.23.0
  • text: 7.0.0
  • theming: 2.8.0
  • twofactor_backupcodes: 1.22.0
  • twofactor_totp: 15.0.0
  • updatenotification: 1.23.0
  • user_status: 1.13.0
  • viewer: 6.0.0
  • weather_status: 1.13.0
  • webhook_listeners: 1.5.0
  • workflowengine: 2.15.0

Hello @stanskis,

welcome to the Nextcloud community! :handshake:

There are few exceptions like upgrading (logging auto-sets to debug) and specific per-app log overrides but if nothing is there it should follow the global config. Please share more details like full config and log examples ideally with actions triggering this log lines.

OK, maybe it was the updates - good to know.
I’ve cleaned up the files and now I’ll watch them.

UPDATE: Yes, it was logs related to previous update processes.
Now having run for a day, there’s only a fer 404 level 3 entries in the log.

Thanks!