NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.46k stars 2.72k forks source link

Proxy Host Access Log Format is differ from Default host Access Log #3010

Open navein-kumar opened 1 year ago

navein-kumar commented 1 year ago

Checklist

Nginx Proxy Manager Version jc21/nginx-proxy-manager:latest

Describe the bug

Hello Team,

We are integrating access log and error log with Log Monitoring Tools, we are getting different log format compared with default-host (default-host_access.log ) and proxy-host(proxy-host-2_access.log). the proxy host is log is not getting trigger with tools. Is there any way make proxy-host logs same as default host access log pattern.

Here the sample log pattern,


cat ./data/logs/default-host_access.log

178.79.135.132 - - [19/Jun/2023:04:17:20 +0000] "GET /db/phpmyadmin5/index.php?lang=en HTTP/1.1" 404 183 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 178.79.135.132 - - [19/Jun/2023:04:17:20 +0000] "GET /_phpmyadmin/index.php?lang=en HTTP/1.1" 404 183 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 178.79.135.132 - - [19/Jun/2023:04:17:20 +0000] "GET /sql/phpmyadmin5/index.php?lang=en HTTP/1.1" 404 183 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 178.79.135.132 - - [19/Jun/2023:04:17:20 +0000] "GET /phpMyAdmin-5/index.php?lang=en HTTP/1.1" 404 183 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"

cat ./data/logs/proxy-host-2_access.log

[18/Jun/2023:23:51:58 +0000] - 404 404 - GET http api.domain2.com "/" [Client 172.70.46.89] [Length 49] [Gzip -] [Sent-to homepreneur] "Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)" "http://api.domain2.com:2095" [19/Jun/2023:04:04:46 +0000] - 200 200 - GET http api.domain2.com "/uploads/student_edition/applicant_photos/1686939840094-179761428.png" [Client 162.158.110.25] [Length 963755] [Gzip -] [Sent-to homepreneur] "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "https://admin.domain2.com/" [18/Jun/2023:23:51:58 +0000] - 404 404 - GET http api.domain2.com "/" [Client 172.70.46.89] [Length 49] [Gzip -] [Sent-to homepreneur] "Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)" "http://api.domain2.com:2095" [19/Jun/2023:04:04:46 +0000] - 200 200 - GET http api.domain2.com "/uploads/student_edition/applicant_photos/1686939840094-179761428.png" [Client 162.158.110.25] [Length 963755] [Gzip -] [Sent-to homepreneur] "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "https://admin.domain2.com/"

github-actions[bot] commented 10 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

boombies commented 9 months ago

👍

https://www.inlimbo.org/2024/01/configuring-nginx-proxy-manager-for-apache-combined-logging-format/

github-actions[bot] commented 3 weeks ago

Issue is now considered stale. If you want to keep it open, please comment :+1: