Replaying requests from error-log


(Strowi) #1

Hello everyone,

i have a little problem… our Piwik-DB went down and in the meantime someone fiddled with the php-installation, removing some essential parts… so there is no real Nginx access-log that i could replay. The error log looks like the following:

2015/12/02 00:52:18 [error] 502#0: *621 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function Piwik\Tracker\Db\mysqli_init() in /var/www/piwik.net-federation.de/core/Tracker/Db/Mysqli.php on line 76" while reading response header from upstream, client: 162.245.253.147, server: piwik.net-federation.de, request: "GET /piwik.php?action_name... HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-wwwuser.sock:", host: "piwikhost", referrer: "http://...."

Is it possible to just rerun those requests with curl (aka curl https://piwik/request) or are there other parts involved?

Thx in advance for any help!

best regards,
strowi


(Matthieu Aubry) #2

HI @strowi1
you can replay the access log request, but not the error log requests: How do I replay the traffic to Piwik and ingest logs of piwik.php requests? - Analytics Platform - Matomo