You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mon piwik a un comportement étrange, peut-être normal ou pas je ne sais pas.
J'exporte mes fichiers logs de façon régulière puis un script lance l'analyse des logs avec import_logs.py avant de les vider via echo "" > /var/log/apache2/access.log.
Donc il y a 4 jours (24/04/2017) pour le 21 avril j'avais +-97k vues, hors aujourd'hui (28/04/2017), toujours pour le 21 avril, j'ai maintenant +-195k vues. Screenshot_1
My piwik has a strange behavior, maybe normal or not I do not know.
I export my log files regularly and then a script runs the log analysis with import_logs.py before emptying them via echo "" > /var/log/apache2/access.log.
So there are 4 days (24/04/2017) for the 21st of April I had + -97k views, and today (28/04/2017), still for the 21st of April, I now have + -195k Views. Screenshot_1
Well i have checked, my export and my purge is good. All my (imported) hosts have this really boring bug.
Views (not visit) are duplicate at all import (cron 2x/hour), their is zero lines in my log for previous day.
Exemple if a day i have 1 visit and 1 views, after 2 import (with zero line about this day) i haved 1 visit and 3 views. The bug begin at 17 april 2017 and after, 16 april and previous don't have problem.
Server A (apache2) export his log and purge it with : cat /var/log/apache2/access.log >> /media/cloud/log/server1_apache2_access.log echo "" > /var/log/apache2/access.log
Server B (piwik) import logs with : python /var/www/html/services/piwik/misc/log-analytics/import_logs.py --url=http://127.0.0.1/services/piwik/ --idsite=2 --recorders=1 --enable-http-errors --enable-http-redirects --enable-bots /media/cloud/log/server1_apache2_access.log echo "" > /media/cloud/log/server1_apache2_access.log
Ok, after search i know where is the bug :
It's a problem of synchro in the sharing folder of nextcloud. I need try for solve the problem but i think use only files via webdav is a solution for force the update of nextcloud database.
More infos in french :
Serveur 1 exporte via webdav ses logs sur le cloud. Ensuite le cloud lisait les fichiers et les vidait directement depuis le filesystem. Nextcloud ne surveillant les filesystem que des "montages externe", il ré-injectait une copie du précédent fichier (qu'il va chercher où, bonne question) + les nouveaux logs.
Se qui fait que les logs s'additionnait constamment et ce malgré que les fichiers avait l'air propre.
FR
Mon piwik a un comportement étrange, peut-être normal ou pas je ne sais pas.
J'exporte mes fichiers logs de façon régulière puis un script lance l'analyse des logs avec import_logs.py avant de les vider via
echo "" > /var/log/apache2/access.log
.Donc il y a 4 jours (24/04/2017) pour le 21 avril j'avais +-97k vues, hors aujourd'hui (28/04/2017), toujours pour le 21 avril, j'ai maintenant +-195k vues.
Screenshot_1
Screenshot_2
Est-ce normal?
USA
My piwik has a strange behavior, maybe normal or not I do not know.
I export my log files regularly and then a script runs the log analysis with import_logs.py before emptying them via
echo "" > /var/log/apache2/access.log
.So there are 4 days (24/04/2017) for the 21st of April I had + -97k views, and today (28/04/2017), still for the 21st of April, I now have + -195k Views.
Screenshot_1
Screenshot_2
Is it normal?
Edit : lol, now it's 279k views for the 21st april xD (the logs files are successed purge after the read by piwik)
The text was updated successfully, but these errors were encountered: