Server logs are not being created


I’ve set up logging according to the FAQ (How do I view Piwik application logs? - Analytics Platform - Piwik)

However, no log files appear in the logging dir (/opt/bitnami/apps/piwik/htdocs/tmp/logs)

This is what I added to the config.ini.php:
log_writers[] = file
log_level = INFO
logger_file_path = tmp/logs/piwik.log

I restarted everything, that didn’t help either. Not sure what to do next. I need the logs to debug another problem I’m having.

(Lukas Winkler) #2


Do you know if the webserver/PHP has write permission in this folder? Have you tried the LogViewer Plugin?


Hi Lukas. Yes I installed the plugin, which gives an error message: “Specified path to log file does not exist: /opt/bitnami/apps/piwik/htdocs/tmp/logs/piwik.log”

Which is correct, since the file doesn’t exist.

Everything is installed by bitnami and uses the user daemon:
drwxr-xr-x 2 daemon daemon 4096 Dec 10 08:02 logs/

All directories are created by the same user.

(Lukas Winkler) #4


The only thing I can think of it the following note in the FAQ:

The Monolog Plugin must be activated in your Piwik server, you can check it by going to Administration > Plugins.

And maybe check the PHP error log if it provides more details.


The Monolog Plugin was already activated.

The PHP error doesn’t show any problems regarding writing to the log files :frowning:



I am having the exact same issue. Matomo configuration seem to be correct since everything is working fine, except the fact that the LogViewer is giving me this error “Specified path to log file does not exist: /opt/matomo/tmp/logs/matomo.log”. Matomo.log file indeed doesn’t exist. matomo/tmp file has write permissions and the config.ini.php file is configured correctly to write logs into this file.