|
|
|
@ -174,13 +174,15 @@ const parse_log_file = async (results, stats, file_name, errors) => { |
|
|
|
|
parser.start(line); |
|
|
|
|
|
|
|
|
|
const data = parser.parse(); |
|
|
|
|
|
|
|
|
|
// skip lines that have content we don't care about
|
|
|
|
|
if(data.url.match(skip)) continue; |
|
|
|
|
|
|
|
|
|
// convert the date to a only day length
|
|
|
|
|
const date_key = format(data.time, "yyyy-MM-dd"); |
|
|
|
|
|
|
|
|
|
// skip lines that have content we don't care about
|
|
|
|
|
if(data.url.match(skip)) { |
|
|
|
|
stats.excluded += 1; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// get the date entry or a new one
|
|
|
|
|
const date_entry = results[date_key] || {}; |
|
|
|
|
|
|
|
|
|