Skip to content

A basic parser for the common log format seen in apache and nginx logs

Notifications You must be signed in to change notification settings

toniov/node-clf-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clf-parser

A little parser for getting useful stuff out of apache/nginx-style "common log format" log lines.

Example

josh@onix:/tmp/clf-parser$ node
> var parse = require('./index');
> parse('127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326');
{ remote_addr: '127.0.0.1',
  remote_user: 'frank',
  time_local: Mon Oct 09 2000 22:55:36 GMT-0800 (AKDT),
  request: 'GET /apache_pb.gif HTTP/1.0',
  status: 200,
  body_bytes_sent: 2326 }
> 

You get the idea.

License

WTFPL

About

A basic parser for the common log format seen in apache and nginx logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%