https://github.com/ms2008/lua-flot
Analyzer for nginx access log with embedded lua-flot
https://github.com/ms2008/lua-flot
Last synced: 9 months ago
JSON representation
Analyzer for nginx access log with embedded lua-flot
- Host: GitHub
- URL: https://github.com/ms2008/lua-flot
- Owner: ms2008
- Created: 2016-02-22T13:56:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-11T04:28:06.000Z (about 10 years ago)
- Last Synced: 2025-01-31T16:56:05.968Z (over 1 year ago)
- Language: JavaScript
- Size: 279 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lua-flot
Analyzer for nginx access log with embedded lua-flot
## Requirements
- **[lua-flot](http://stevedonovan.github.io/lua-flot/flot-lua.html)**
- lua-discount
- luafilesystem
- penlight
**Nginx configuation**:
```
log_format main '$time_local $status $request_time $upstream_response_time $remote_addr $upstream_addr $server_addr $host '
'"$bytes_sent" "$request_body" "$request" "$http_referer" "$http_user_agent" "$gzip_ratio" "$http_x_forwarded_for"';
```
## Usage
```bash
Usage: ploter.lua FILE LINES_TO_SPLIT
e.g.: ploter.lua slow_log 500
# cleanup the junk file
lua ploter.lua clean
# generating HTML(slow_request.hmtl)
lua ploter.lua base_slow.log 1000
```

## License
**MIT**