-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure consistent hostname logging behavior in nginx logs #897
Comments
This needs to be fixed for both port 443 and 9090. For port 443 it should be enough to use this fix:
For port 9090 this should fix it:
if you want to try it you 'll need also to restart the service:
|
Image: 23.05.5-ns.1.3.0-41-g7436b45 Try the new image, ensure configuration is set correctly. |
tested on port 9090 and 443 it works as expected: Nov 18 20:18:42 NethSec.localdomain nginx: 192.168.56.1 - - [18/Nov/2024:20:18:42 +0000] "POST /api/ubus/call HTTP/1.1" 200 323 "https://192.168.56.104:9090/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" |
Currently, the log format used by
nginx
differs from other logs, as it writes the hostname twice, causing inconsistency and visual misalignment with the rest of the log entries. This behavior can be seen in the following examples:Expected Behavior (similar to other logs):
Current Nginx Behavior:
Explanation and Purpose
Proposed Solution
Modify the nginx log format to prevent the hostname from being written twice.
Components
NethSecurity version: 8-23.05.5-ns.1.3.0
The text was updated successfully, but these errors were encountered: