cloudfront-logs
v1.0.0
Published
parser for cloudfront logs.
Downloads
3
Readme
CloudFront Logs
It's a simple module for parsing CloudFront log on S3 to a parsed array of objects.
Usage
parse(rawLogData);
var cloudfrontLogs = require('cloudfront-logs');
cloudfrontLogs.parse(rawLogGzip, function(parsed) {
// parsed = [{}, {}]
});
or the callback may be omitted and the return value used:
var parsed = cloudfrontLogs.parse(rawLogGzip);
Each newline on the raw data, a new object it's added to the array. Here's an example of what it's returned:
TODO
Test
Test Command
$ mocha