Export specific events from the logs files

Hi,

My log level is set to 1. My requirement is, I want to have a 3 individual custom log file for the following events

  1. Login success
  2. Login attempt/failed
  3. Files access (Create/modify/delete/share)

This’s to simply the logging. Is it possible to read the actual config (nextcloud.log & audit.log) to extract the above specific events only & store it as an individual file?! Any help would be appreciated!

Nextcloud doesn’t provide such a mechanism, therefore I would recommend to change the log settings to use syslog instead of file logging. Additionally you need to use rsyslog instead of syslogd as a log daemon. It allows to filter log data with simple rules, much better than many other daemons.