Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/node-haproxy-log-parse
Parse haproxy log lines to JavaScript objects
https://github.com/wankdanker/node-haproxy-log-parse
Last synced: 14 days ago
JSON representation
Parse haproxy log lines to JavaScript objects
- Host: GitHub
- URL: https://github.com/wankdanker/node-haproxy-log-parse
- Owner: wankdanker
- Created: 2014-10-28T18:55:20.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-28T19:02:04.000Z (about 10 years ago)
- Last Synced: 2024-12-06T05:17:52.317Z (about 1 month ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
haproxy-log-parse
-----------------Parse haproxy http log lines into Javascript objects
install
-------```bash
npm install haproxy-log-parse
```usage
-----```js
var parse = require('haproxy-log-parse');console.log(parse(haproxyline));
``````json
{
"date": "Tue Oct 28 2014 14:50:33 GMT-0400 (EDT)",
"host": "linuxvm02",
"process_name": "haproxy",
"pid": 25089,
"client_ip": "192.168.100.1",
"client_port": 34686,
"accept_date": "Tue Oct 28 2014 14:50:33 GMT-0400 (EDT)",
"frontend_name": "frontend0",
"backend_name": "cluster0",
"server_name": "node0",
"tq": 1,
"tw": 2,
"tc": 3,
"tr": 4,
"tt": 5,
"status_code": "200",
"bytes_read": 571,
"captured_request_cookie": "-",
"captured_response_cookie": "-",
"terminiation_state": "--VN",
"actconn": 6,
"feconn": 7,
"beconn": 8,
"srv_conn": 9,
"retries": 10,
"srv_queue": 11,
"backend_queue": 12,
"method": "GET",
"request": "/do-thing-nowish",
"version": "HTTP/1.1"
}
```license
-------
MIT