docker icon indicating copy to clipboard operation
docker copied to clipboard

access log of pelias container not found

Open MALKARAJ opened this issue 2 years ago • 6 comments

Hi Team couldn't find the accesss log of pelias api container inside docker

MALKARAJ avatar Aug 23 '23 07:08 MALKARAJ

What did you try and what were the outcomes?

missinglink avatar Aug 23 '23 10:08 missinglink

What did you try and what were the outcomes? i inspected the running docker container and went through /var/log path and couldn't find the access log

MALKARAJ avatar Aug 23 '23 10:08 MALKARAJ

What did you try and what were the outcomes?

i inspected the running docker container and went through /var/log path and couldn't find the access log

MALKARAJ avatar Aug 23 '23 10:08 MALKARAJ

What were you expecting to find in /var/log?

The server is nodejs, not Nginx or Apache and does not produce HTTP logs.

missinglink avatar Aug 23 '23 10:08 missinglink

What were you expecting to find in /var/log?

The server is nodejs, not Nginx or Apache and does not produce HTTP logs.

sorry i dont have much knowledge how docker stores the container logs my question is that docker logs pelias_api shows the logs, is that logs persist inside the docker container ??

MALKARAJ avatar Aug 23 '23 10:08 MALKARAJ

No, the logs are written to stdio.

This method is preferable because it doesn't require log rotation inside the container and allows you to capture the log and store it externally.

missinglink avatar Aug 23 '23 11:08 missinglink