# Nextcloud Logfile Not in /var/log/nextcloud.log

**URL:** <https://help.nextcloud.com/t/nextcloud-logfile-not-in-var-log-nextcloud-log/2986>\
**Category:** ℹ️ Support\
**Tags:** nextcloudlog\
**Created:** [September 5, 2016, 7:40pm UTC](https://help.nextcloud.com/t/nextcloud-logfile-not-in-var-log-nextcloud-log/2986 "2016-09-05T19:40:37Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![kiv](https://help.nextcloud.com/letter_avatar/kiv/32/6_22734026db12803ebb3e059622ac3534.png) [@kiv](https://help.nextcloud.com/u/kiv)\
**Post date:** [November 15, 2019, 10:04am UTC](https://help.nextcloud.com/t/nextcloud-logfile-not-in-var-log-nextcloud-log/2986/10 "2019-11-15T10:04:34Z")

</div>

Thank you for your answer.

I confirm that the log file is in `data` directory (as it always was).  
I double-checked permissions.  
As far as I can tell, the only thing that changed is the rotation made by logrotate.

My logrotate config file for nextcloud is :

```
/[datapath]/nextcloud.log /datapath]/audit.log {
    su www-data www-data
    weekly
    rotate 12
    size 52428800
    missingok
    notifempty
    create 644 www-data www-data
} 

```

I launched logrotate manually to check the syntax, it worked fine.

EDIT : I even changed mysql config value [as suggested here](https://help.nextcloud.com/t/logging-admin-page-does-not-show-any-log-entry/5402/13)

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-logfile-not-in-var-log-nextcloud-log/2986)._
