matomo-org / matomo-log-analytics

Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.
https://matomo.org/log-analytics/
GNU General Public License v3.0
227 stars 119 forks source link

Fatal error: the configuration file/config/config.ini.php could not be read. #355

Open inetactief opened 1 year ago

inetactief commented 1 year ago

Hello,

I use the command on Debian 10 running icecast2:

python3 /download/matomo-log-analytics-4.x-dev/import_logs.py --show-progress --url=https://stats.domein.nu --idsite=4 --recorders=8 --enable-http-errors --log-format-name=icecast2 --strip-query-string /var/log/icecast/accessi_ssl.log

But i get Fatal error: the configuration file/config/config.ini.php could not be read. Please check permission. This file must be readable by the user running this script to get the authentication token

Can not find config.ini.php and try to install php7.4 but i can not fix the error.

Best regards, Michel

inetactief commented 1 year ago

Found the solution, the Matoma is extern and need to add the API

--token-auth=xxxxxxx

inetactief commented 1 year ago

Import works but i like to use a cronjob for icecast so it go automatic to send data from Icecast to Matomo. So Icecast have a option for log rotation example:

10000 1

It only creates a file dump when the file size is reached. Does anyone have a solution for this. Would be nice if the have time date dump? The best thing is that it is also quite real-time stats, update every 5 minutes? But now i must wait for 750 seconden to import. But no duplicate records when you do the same file again in 30 minutes :-)

When I set the file size of the log to 500kb and I try to update/import it every hour, I have a chance of missing data. If a log rotation is executed at xx:55. Then I only read in the last 5 minutes.

Does anyone have a solution for this?