Analyzer ngx-err-log-files
Name
ngx-err-log-files - Nginx Error Log Files
This analyzer identifies and lists all error log files configured in nginx-based applications such as OpenResty and Kong. It scans the error_log directive settings across different configuration contexts, capturing file paths and associated log levels. The analyzer produces table visualizations displaying the complete inventory of error log files, helping administrators manage log file locations, prevent disk space issues, and ensure proper log aggregation in distributed environments.
Resource Category
Latency.
Application Type & Technical Stack
- OpenResty
- Nginx
- Kong
- APISIX
Command Line Syntax
The analyzer can be invoked directly on the command-line via the orxray
utility from the openresty-xray-cli software package.
Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).
# PID is the target process PID.
orxray analyzer run ngx-err-log-files -p PID
# trace a shell command directly
orxray analyzer run ngx-err-log-files -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run ngx-err-log-files -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run ngx-err-log-files --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Tables
- Plain Texts
Output Example
[
{
"data": [
[
"File Name",
"Sample Count"
],
[
"/usr/local/openresty/nginx/logs/error.log",
"1"
]
],
"title": "Error Log Files Used by Nginx",
"type": "table",
"ver": 1
}
]
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.