https://github.com/jongiddy/nginx-log-expt
Test nginx logging using sockets
https://github.com/jongiddy/nginx-log-expt
Last synced: 3 months ago
JSON representation
Test nginx logging using sockets
- Host: GitHub
- URL: https://github.com/jongiddy/nginx-log-expt
- Owner: jongiddy
- Created: 2018-12-03T09:19:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-03T09:35:43.000Z (over 6 years ago)
- Last Synced: 2025-01-06T09:46:13.574Z (5 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Test NGINX logging.
Edit `install.sh` to select one of the NGINX configs:
* stderr: error_log goes to stderr which is not read
* clear: error_log goes to a Unix domain socket that is read
* block_error: error_log goes to a Unix domain socket that is not read
* block_access: access_log goes to a Unix domain socket that is not readRun `vagant up`. This will start OpenResty NGINX.
In another terminal run `python request.py`. This will send 10,000 requests to
NGINX.Spoiler: `stderr` blocks and NGINX stops responding. All other configs keep
responding although logs are missing from the blocked sockets.