diff options
author | diosmosis <benaka@piwik.pro> | 2015-02-11 05:09:52 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-02-11 05:09:52 +0300 |
commit | fed67c99291fc6920b06e18d6fa82c048b1bd198 (patch) | |
tree | 0ca5f5a76fea2855ce17b0557e0562ae8e3f28a5 /tests/PHPUnit/Fixtures/ManySitesImportedLogs.php | |
parent | 28ddcab3947534e45a5310bd28f34f65dc97c543 (diff) |
Add new --w3c-field-regex option to log importer which allows specifying regex for any w3c extended log field. Can combine this option w/ --regex-group-to-...-cvar options to track any field that the importer doesn't natively recognize.
Diffstat (limited to 'tests/PHPUnit/Fixtures/ManySitesImportedLogs.php')
-rw-r--r-- | tests/PHPUnit/Fixtures/ManySitesImportedLogs.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php index 1dd043200f..c7e65c7499 100644 --- a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php +++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php @@ -272,8 +272,13 @@ class ManySitesImportedLogs extends Fixture if ($mapToCustom) { $opts['--regex-group-to-visit-cvar'] = 'userid=User Name'; - $opts['--regex-group-to-page-cvar'] = 'generation_time_milli=Generation Time'; + $opts['--regex-group-to-page-cvar'] = array( + 'generation_time_milli=Generation Time', + 'win32_status=Windows Status Code' + ); $opts['--ignore-groups'] = 'userid'; + $opts['--w3c-field-regex'] = 'sc-win32-status=(?P<win32_status>\S+)'; + $opts['--w3c-time-taken-milli'] = false; } self::executeLogImporter($logFile, $opts); |