mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #145] entries in access_log not found in docker logs #129
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @niek1992 on GitHub (May 15, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/145
Checklist
Have you pulled and found the error with
jc21/nginx-proxy-manager:latestdocker image?yes i have.
Are you sure you're not using someone else's docker image?
I've modified one of the ENV variables to match my timezone, but that shouldn't break logging. Currently it's the latest image pulled from DockerHub.
A clear and concise description of what the bug is.
I'm trying to view the access_log and error_log in Docker Logs. but it only contains the messages about Lets Encrypt certificates and their renewal timers.
What version of Nginx Proxy Manager is reported on the login page?
V2.0.13
Expected behavior
i'd espect to see the error.log and access.log of Nginx in order to see who/which have accessed my Nginx Proxy. If i navigate to the locations Nginx uses to store logs (/data/logs) i see several
logfiles containing the information i need.
Operating System
I'm running Docker on a Ubuntu 18.04 LTS VM on a ESXi hypervisor.
Additional context
I've initially used the docker_compose.yaml file to setup the container. Today i've pulled the latest image, and configured the container from within Portainer UI. Same results.
@jc21 commented on GitHub (May 16, 2019):
Where do you expect them though? The title suggests you also expect them in the output of
docker logsYou've said you've found them on disk already and they are in the location that the application is designed to use.
@niek1992 commented on GitHub (May 16, 2019):
Sorry, i should've been clearer. I've expected the output of both of those logs to be send to
docker logsSincestderrandstdoutgets picked up by that. But instead the logs get directed to /data/logs/error.log and access.log instead of /var/log/error.log and access.log that have a symlink to stderr and stdout.Is this by design? I would like to view the access and error logs in the
docker logsinstead of logging in via SSH and tailing the file manually.@jc21 commented on GitHub (May 20, 2019):
Yes it's by design. I built this app for myself and I currently have 50 services running on one instance. I don't want to see all those access logs in my docker logs output, it's too much and irrelevant to the running of the docker container itself.
The separation also makes it easy to import the access logs in to an aggregator, such as logstash etc.
@niek1992 commented on GitHub (May 21, 2019):
Fair enough. I initially wanted to stay away from aggregrators to collect logs since i only have 6 containers running from which 2 are producing logs i'd like to read. I'll read up on a fitting one for me and how to implement it. Thanks anyway for replying to the issue i opened.