Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add an option to only process log entries that haven't been processed before #232
I want to use Matomo with log analytics only. My Nginx logs are rotated every week, but I want my reports to be updated much earlier, e.g. every hour. If I just feed the same log file with already reported visits to the importer, I will have duplicated entries, so I need to either rotate logs every hour (very inconvenient) or somehow prevent logs from being imported twice. Based on what I could find, there is currently no easy way to do this.
This pull request solves this by tracking the latest visit timestamp found in an imported log file and then saving it to a file specified in a
This kind of solves #144.
I've also added some lines to the summary to print the status of the timestamp-based filtering, and included the older/newer than filtering too since it's related:
I also tweaked the printing there to remove extra empty lines (more than 2 newlines are compacted into 2) - this was already a problem before, as the space between the 2nd and 3rd section was bigger than between 1/2 and 3/4 because of