Skip to content

Commit 10ec21d

Browse files
committed
updated readme
1 parent 145c6ee commit 10ec21d

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# CloudFront Access Log Parser
33

4-
This is a log parser for Cloudfront Web Distribution and RTMP Distribution access logs. It can be used for directly or with the Node.js Stream API.
4+
This is a log parser for Cloudfront Web Distribution and RTMP Distribution access logs. It can be called directly or with the Node.js Stream API.
55

66
[![Build Status](https://travis-ci.org/claygregory/node-cloudfront-log-parser.svg?branch=master)](https://travis-ci.org/claygregory/node-cloudfront-log-parser)
77
[![Coverage Status](https://coveralls.io/repos/github/claygregory/node-cloudfront-log-parser/badge.svg?branch=master)](https://coveralls.io/github/claygregory/node-cloudfront-log-parser?branch=master)
@@ -41,9 +41,9 @@ const fs = require('fs');
4141
const zlib = require('zlib');
4242

4343
const parser = new CloudFrontParser({ format: 'web' });
44-
parser.on('readable', function(){
44+
parser.on('readable', function () {
4545
let access;
46-
while(access = parser.read()){
46+
while (access = parser.read()) {
4747
//access = parsed entry object
4848
}
4949
});
@@ -110,7 +110,11 @@ const options = {
110110
'cs-uri-query': 'key=value',
111111
'c-referrer': 'http://player.example.com/player.swf',
112112
'x-page-url': 'http://www.example.com/video',
113-
'c-user-agent': 'LNX 10,0,32,18' }
113+
'c-user-agent': 'LNX 10,0,32,18',
114+
'x-sname': '-',
115+
'x-sname-query': '-',
116+
'x-file-ext': '-',
117+
'x-sid': '-' }
114118
```
115119

116120
## License

0 commit comments

Comments
 (0)