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
226 stars 118 forks source link

Automate --skip= in the command #350

Open ignace72 opened 1 year ago

ignace72 commented 1 year ago

I often get the following error:

Fatal error: HTTP Error 500 Internal Server Error, response: {"status": "error", "tracked":2, "invalid":0, "invalid_indices":[]}
You can restart the import of "/var/log/nginx/access.log" from the point it failed by specifying --skip=1674 on the command line.

Here is my question: Is there any way to tell import_logs.py to automatically jump on every error? I ask this because I put the command in my crontab to automate adding the last accesses to the web server. Thank you very much.