Can't see audit.log in WebGUI

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.2.3
Operating system and version (eg, Ubuntu 20.04): 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.4): 7.4

The issue you are facing:

Hi, I set up audit.log but I can’t get messages in WebGui Settings>Logging, audit.log file is written correctly.

Can anyone help, please?

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

*relevant parts ONLY, I tried with loglevel=1 too, same result



        "loglevel": 2,
        "logtimezone": "Europe\/Rome",
        "logdateformat": "d F, Y H:i:s",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },

.......

         
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "logfile": "\/appl\/nextcloud\/data\/audit.log",
            "types": "logging"
        },
 


The audit.log file is written in parallel to the “normal” nextcloud.log file. It cannot be shown using the web GUI yet, only the nextcloud.log file shown.

Thanks a lot for your answer!!!

How can I get logs for users’ activities?

If I use nextcloud.log only and I set log level to 1, can I get logs for users login, sharing, and downloads ?

thx. Mx.

There is an open PR for this feature: Add feature to view admin_audit log files by Abijeet · Pull Request #476 · nextcloud/logreader · GitHub

OK, I see.

thank you very much, I can’wait to use it.

Have a nice night. Mx.

@szaimen (or anyone else)… I know i am soo lame, but i wonder. How do i use this feature? When i click the link and get to GIT i really don´t understand what to do (this can not just be downloaded there?). If you got a minute to explain i would be very thankful :blush:

You cannot as the PR is not merged yet.