Skip to content

Service to read logs from a (dockerized) NGINX reverse proxy and store data into a time-series database for monitoring.

Notifications You must be signed in to change notification settings

r13i/nginx-logs-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

To start this container, run:

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

About

Service to read logs from a (dockerized) NGINX reverse proxy and store data into a time-series database for monitoring.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages