pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
314 stars 217 forks source link

access log of pelias container not found #319

Open MALKARAJ opened 10 months ago

MALKARAJ commented 10 months ago

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

missinglink commented 10 months ago

What did you try and what were the outcomes?

MALKARAJ commented 10 months ago

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 commented 10 months ago

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

missinglink commented 10 months ago

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

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

MALKARAJ commented 10 months ago

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 ??

missinglink commented 10 months ago

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.