Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: s3-access-log-parser
node v4.9.1
endpoint
share
tweet
var s3alp = require("s3-access-log-parser") var bogusCharacters = new RegExp(String.fromCharCode(8204, 8203), 'g') var logLine = '79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be mybucket [06/Feb/2014:00:00:38 +0000] 192.0.2.3 79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be 3E57427F3EXAMPLE REST.GET.VERSIONING - "GET /mybucket?versioning HTTP/1.1" 200 - 113 - 7 - "-" "S3Console/0.4" -' s3alp(logLine.replace(bogusCharacters, ''))
Created from: https://runkit.com/npm/s3-access-log-parser
Loading…
no comments
sign in
to comment