[GH-ISSUE #260] Add custom logs - more than just access and error #4568

Closed
opened 2026-03-01 15:34:20 +03:00 by kerem · 1 comment
Owner

Originally created by @IkeTaylor11 on GitHub (Jan 16, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/260

Is your feature request related to a problem? Please describe.
When using nginx, sometimes logs are split out to their own file for particular reverse proxies. Would like the ability to add more than just the standard access and error log into nginx-ui

Describe the solution you'd like
Would like the ability to add more than just the standard access and error log into nginx-ui

Describe alternatives you've considered
no alternatives available right now

Additional context
Add button to create new log sources in nginx-ui
image

Originally created by @IkeTaylor11 on GitHub (Jan 16, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/260 **Is your feature request related to a problem? Please describe.** When using nginx, sometimes logs are split out to their own file for particular reverse proxies. Would like the ability to add more than just the standard access and error log into nginx-ui **Describe the solution you'd like** Would like the ability to add more than just the standard access and error log into nginx-ui **Describe alternatives you've considered** no alternatives available right now **Additional context** Add button to create new log sources in nginx-ui ![image](https://github.com/0xJacky/nginx-ui/assets/46714421/b0fb5d52-f9d6-482d-8810-182b2c2a0fad)
kerem 2026-03-01 15:34:20 +03:00
Author
Owner

@YiHui-Liu commented on GitHub (Oct 17, 2024):

and what's more, we need to grant permissions to allow nginx-ui to read log files like:

export NGINX_UI_NGINX_LOG_DIR_WHITE_LIST=/var/log/nginx,/var/log/sites

so, if we set the log file path for particular website like:

access_log /var/log/sites/xxx/access.log;
error_log /var/log/sites/xxx/error.log;

we should be able to read them in the log file page:
1729163119436

<!-- gh-comment-id:2419226815 --> @YiHui-Liu commented on GitHub (Oct 17, 2024): and what's more, we need to grant permissions to allow `nginx-ui` to read log files like: ```bash export NGINX_UI_NGINX_LOG_DIR_WHITE_LIST=/var/log/nginx,/var/log/sites ``` so, if we set the log file path for particular website like: ``` access_log /var/log/sites/xxx/access.log; error_log /var/log/sites/xxx/error.log; ``` we should be able to read them in the log file page: ![1729163119436](https://github.com/user-attachments/assets/8ca3dc70-594b-4928-b8ac-77535d56d913)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#4568
No description provided.