# Audit Log empty

**URL:** <https://help.nextcloud.com/t/audit-log-empty/49642>\
**Category:** ℹ️ Support\
**Tags:** auditlog\
**Created:** [March 16, 2019, 9:18am UTC](https://help.nextcloud.com/t/audit-log-empty/49642 "2019-03-16T09:18:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauzilla](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mauzilla/32/5956_2.png) [@mauzilla](https://help.nextcloud.com/u/mauzilla)\
**Post date:** [March 16, 2019, 9:18am UTC](https://help.nextcloud.com/t/audit-log-empty/49642/1 "2019-03-16T09:18:32Z")

</div>

I am firstly not sure if there is a log available for my request but I have a hunch that it’s the audit log. We want to view which files are downloaded / uploaded by the NextCloud client. We’re running NextCloud 15.

From the command line I have enabled the audit log and also changed the audit log location to write audit logs to audit.log - There is however nothing written to it, even when I deliberately log out / log in / setup a new connection from a client.

Any ideas as to what I may be doing wrong?

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [March 16, 2019, 9:25am UTC](https://help.nextcloud.com/t/audit-log-empty/49642/2 "2019-03-16T09:25:34Z")

</div>

Afaik, make sure that the **admin\_audit** app is installed.

---

<div class="post-metadata">

**Author:** ![mauzilla](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mauzilla/32/5956_2.png) [@mauzilla](https://help.nextcloud.com/u/mauzilla)\
**Post date:** [March 18, 2019, 10:38am UTC](https://help.nextcloud.com/t/audit-log-empty/49642/3 "2019-03-18T10:38:04Z")

</div>

I have enabled the command via command line:

sudo -u apache php occ app:enable admin\_audit  
admin\_audit enabled

And also changed the audit log location:

sudo -u apache php occ config:app:set admin\_audit logfile --value=/var/log/ncaudit.log  
Config value logfile for app admin\_audit set to /var/log/ncaudit.log

Yet, no new file is created in the /var/log directory even after I created a new file as a user. I am using version 15 for reference - What else can I check / do?

---

<div class="post-metadata">

**Author:** ![mauzilla](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mauzilla/32/5956_2.png) [@mauzilla](https://help.nextcloud.com/u/mauzilla)\
**Post date:** [March 18, 2019, 10:41am UTC](https://help.nextcloud.com/t/audit-log-empty/49642/4 "2019-03-18T10:41:12Z")

</div>

I also changed the file location to a directory within the nextcloud installation (so that apache has the neccesary access to the file) - It has now created the ncaudit.log file but it’s not populating anything in it (even with apache:apache as the owner of the file).

I added and deleted new files in my local nextcloud directory (and the files have synced to remote) but nothing is written to the audit log

---

<div class="post-metadata">

**Author:** ![mauzilla](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mauzilla/32/5956_2.png) [@mauzilla](https://help.nextcloud.com/u/mauzilla)\
**Post date:** [March 18, 2019, 10:43am UTC](https://help.nextcloud.com/t/audit-log-empty/49642/5 "2019-03-18T10:43:45Z")

</div>

I have even gone as far as to log out of the local client and attempted to log in with an incorrect password and again nothing is written to the audit log - I must be doing something wrong?

---

<div class="post-metadata">

**Author:** ![mauzilla](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mauzilla/32/5956_2.png) [@mauzilla](https://help.nextcloud.com/u/mauzilla)\
**Post date:** [March 18, 2019, 11:03am UTC](https://help.nextcloud.com/t/audit-log-empty/49642/6 "2019-03-18T11:03:27Z")

</div>

Alright I managed to get this working, you have to set the loglevel in the config file to 1

---

<div class="post-metadata">

**Author:** ![TimmyBobby](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timmybobby/32/15386_2.png) [@TimmyBobby](https://help.nextcloud.com/u/TimmyBobby)\
**Post date:** [May 19, 2019, 4:20pm UTC](https://help.nextcloud.com/t/audit-log-empty/49642/7 "2019-05-19T16:20:12Z")

</div>

Hello friend! I am having the same problem, no audit log is showed in the web browser’s log reader, but all other logs such as core are all there. Could you explain more on how you figure it out? What is your detailed configuration settings? I tried the level setting in the pho file but did not fix anything?!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 9:33am UTC](https://help.nextcloud.com/t/audit-log-empty/49642/8 "2024-12-04T09:33:19Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 2:38pm UTC](https://help.nextcloud.com/t/audit-log-empty/49642/9 "2024-12-11T14:38:51Z")

</div>


