cf-1. 바보개발님 블로그 먼저보기
https://minholee93.tistory.com/entry/Nginx-Logging?category=926406
[Nginx] Logging
이전글에 이어서 Nginx의 configuartion에 대해 알아보도록 하겠습니다. 9. Logging Nginx는 access & error log를 기본으로 제공합니다. log는 nginx뿐만아니라 많은 service에서 error를 tracking 하거나 user의..
minholee93.tistory.com
cf-2. error_log doc
http://nginx.org/en/docs/ngx_core_module.html#error_log
Core functionality
Core functionality Example Configuration user www www; worker_processes 2; error_log /var/log/nginx-error.log info; events { use kqueue; worker_connections 2048; } ... Directives Syntax: accept_mutex on | off; Default: accept_mutex off; Context: events If
nginx.org
cf-3. access_log doc
http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log
Module ngx_http_log_module
Module ngx_http_log_module The ngx_http_log_module module writes request logs in the specified format. Requests are logged in the context of a location where processing ends. It may be different from the original location, if an internal redirect happens d
nginx.org
1. log 파일은 어디에 있나?
처음에 configure 설정할 때 지정해 놨었다.

2. log 파일 추가하고 싶을 때
(1) access_log 이용


(2) 전체 log파일에도 log를 남기고 싶다면


3. logging advanced
https://docs.nginx.com/nginx/admin-guide/monitoring/logging/
Configuring Logging | NGINX Plus
Configuring Logging Capture detailed information about errors and request processing in log files, either locally or via syslog. This article describes how to configure logging of errors and processed requests in NGINX Open Source and NGINX Plus. Setting
docs.nginx.com
'Tool > Nginx' 카테고리의 다른 글
| [NGINX] 3-8. Configuration PHP Processing (0) | 2021.12.18 |
|---|---|
| [NGINX] 3-7. Configuration - Inheritance & Directive types (0) | 2021.12.18 |
| [NGINX] 3-5. Configuration-try_files, Named Locations (0) | 2021.12.18 |
| [NGINX] 3-4. Configuration-Rewrites, Redirects (0) | 2021.12.18 |
| [NGINX] 3-3. Configuration-Variables 사용하기 (0) | 2021.12.18 |
댓글