@cmt-all opened this Issue on March 30th 2016

The following log is imported.

10.10.20.216 - - [06/Jan/2015:08:59:59 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
10.10.20.217 - - [06/Jan/2015:09:00:00 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
10.10.20.218 - - [06/Jan/2015:09:00:01 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
10.10.20.216 - - [07/Jan/2015:08:59:59 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
10.10.20.217 - - [07/Jan/2015:09:00:00 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
10.10.20.218 - - [07/Jan/2015:09:00:01 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"

Then I ran the following command.

console core:delete-logs-data --dates=2015/01/06,2015/01/07
console core:invalidate-report-data --dates=2015-01-06

As a result, following data remains in the visitor log.

10.10.20.216 - - [06/Jan/2015:08:59:59 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
10.10.20.217 - - [07/Jan/2015:09:00:00 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
10.10.20.218 - - [07/Jan/2015:09:00:01 +0900] "GET /test.html HTTP/1.1" 200 317 "-" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"

This command ("console core:delete-logs-data") does not consider the time difference from GMT.

We are running our server at JST (GMT +900).
Piwik version is 2.16.0.

Powered by GitHub Issue Mirror