https://github.com/softonic/nginx-vts
Nginx Docker image with access log in JSON format
https://github.com/softonic/nginx-vts
docker json-log nginx
Last synced: about 1 month ago
JSON representation
Nginx Docker image with access log in JSON format
- Host: GitHub
- URL: https://github.com/softonic/nginx-vts
- Owner: softonic
- License: other
- Created: 2019-02-15T12:14:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T15:59:27.000Z (over 3 years ago)
- Last Synced: 2025-04-08T07:43:45.501Z (about 1 year ago)
- Topics: docker, json-log, nginx
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/softonic/nginx-vts/builds
- Size: 24.4 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Description
This nginx image exports metrics from VTS module to port 8080 with url /status.
It will output the logs in a JSON format to stdout.
# Usage
You need to define the next environment variables:
* APPLICATION: application name to be used in the logs
You need to set in your server configuration the request_start_time variable. For example:
```
server {
listen 80;
set $request_start_time '$time_iso8601';
server_name _;
}
```