Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r13i/nginx-logs-monitoring
Service to read logs from a (dockerized) NGINX reverse proxy and store data into a time-series database for monitoring.
https://github.com/r13i/nginx-logs-monitoring
docker logs network nignx reverse-proxy time-series-database traffic traffic-analysis
Last synced: about 1 month ago
JSON representation
Service to read logs from a (dockerized) NGINX reverse proxy and store data into a time-series database for monitoring.
- Host: GitHub
- URL: https://github.com/r13i/nginx-logs-monitoring
- Owner: r13i
- Created: 2020-06-09T20:04:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T15:35:56.000Z (over 4 years ago)
- Last Synced: 2024-09-12T04:18:29.609Z (4 months ago)
- Topics: docker, logs, network, nignx, reverse-proxy, time-series-database, traffic, traffic-analysis
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - r13i/nginx-logs-monitoring - Service to read logs from a (dockerized) NGINX reverse proxy and store data into a time-series database for monitoring. (docker)
README
# nginx-logs-monitoring
Service to read logs from a (dockerized) NGINX reverse proxy and store data into a time-series database for monitoring.## Development Process
WIP.
### Getting a local NginX environment
Since this project aims at parsing and monitoring logs from a dockerized Nginx proxy instance, we
will create a local environment with a minimal docker container based on the _de facto_ standard
[nginx-proxy from JWilder](https://github.com/nginx-proxy/nginx-proxy).To start this container, run:
```bash
docker run --rm \
--name local-nginx-proxy \
-p 80:80 \
-v /var/run/docker.sock:/tmp/docker.sock:ro \
jwilder/nginx-proxy# You can add --detach to run the container in detached mode (to free up your terminal)
```### Parsing Logs
What format we base on:
```
$host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"
```## References
- [xtimon/nginxparser](https://github.com/xtimon/nginxparser)