Custom Query (2311 matches)
Results (49 - 51 of 2311)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#1889 | invalid | access_log off; returns 404 with nginx proxy | ||
Description |
Summary: With nginx reverse proxy mode, I am trying to turn off access_log for a specific location. Doing so Nginx returns 404 for that location. Refer to the following example. Front-end Nginx configuration: server {
} Requirement: => My requirement is to turn off nginx logs on the backend server in order to save IO and configure the front-end to provide proxy pass and all website logs. Refer to the following access and error logs. ============ Nginx logs ============ Main Page:http://172.17.0.2 ==> /var/log/nginx/site1_access <== 172.17.0.1 - - [12/Nov/2019:09:52:26 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36" "-" ==> /var/log/nginx/site1_error <== 2019/11/12 09:54:10 [error] 188#188: *3 open() "/var/lib/nginx/html/icons/nginx-logo.png" failed (2: No such file or directory), client: 172.17.0.1, server: , request: "GET /icons/nginx-logo.png HTTP/1.1", host: "172.17.0.2" The above logs indicate that nginx is trying serve the page from the front-end server instead of forwarding the request to backend. |
|||
#713 | invalid | access_log path with variable computes path incorrectly | ||
Description |
In map $http_user_agent $access_log { ~*bot off; default /var/log/nginx/example.com/access.log; } server { access_log $access_log main; }
File is included from
[crit] 9091#0: *252296 open() "/etc/nginx//var/log/nginx/example.com/access.log" failed (2: No such file or directory) while logging request |
|||
#2646 | invalid | access_log syslog message length | ||
Description |
Hello! I use 2 types of logs, one directly to a file, there are no problems with it. The second log is sending data to ELK using the syslog method. Everything was fine until I included requests in the log POST, they are quite large, and some of them are truncated, despite the fact that in a regular log file, which is written in parallel, this message is not truncated. I tried to use buffer increase buffer=64k in the configuration file, but waiting for syslog it did not work, it showed that this was not possible. Perhaps this is not an error, you need to increase the buffer somewhere for sending messages that are sent by the syslog method, but I could not find this in the documentation. Presumably, somewhere there is a message size limit of 8k. Can you please tell me the solution to this problem? Thank you! online_access.log: "statistics=%7B%22envelopes%22%*bigmessage*22%3A%22aIdEditCopy%22%2C%22secsFromStart%22%3A2595%2C%22tab%22%3A4%7D%2C%22timestamp%22%3A1717362074017%7D%5D%2C%22timestamp%22%3A1717362074021%7D&rnd=Ft85pw" syslog: "statistics=%7B%22envelopes%22%*bigmessage*22%3A%22aIdEditCopy%22%2C%22secsFromStart%2 * access_log /var/log/nginx/online_access.log constime; access_log syslog:server=elk:9102,tag=Nginx,severity=info constime; * |