-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
mbtamuli commentedon Jan 2, 2019
We can use this as the base image https://github.com/samsung-cnct/logrotate
sagarnasit commentedon Jan 4, 2019
@mbtamuli I'm mounting
/opt/easyengine
path with logrotate container. Logs are being archived as expected foree.logs
but, it can not able archive logs forsite
andglobal service
specific logs because path for those logs are docker volumes. When i try to cd to mounted path it gives an errorNo such file or directoey
.Check EasyEngine/dockerfiles#76 for logrotate Dockerfile.mbtamuli commentedon Jan 4, 2019
The log volumes are accesible directly in the directory
/var/lib/docker/volumes
So in this case, we have to mount
/var/lib/docker
and then, possibly give thefollowing as a regex to logrotate
/var/lib/docker/volumes/*log*/_data/
sagarnasit commentedon Jan 4, 2019
/var/lib/docker/volumes/*log*/_data/
this regex string working fine with logrotate. After testing, logs have been archived from docker volumes as well. We can move to further implementation of logrotate.sagarnasit commentedon Jan 7, 2019
Logrotate is added as global service with
global-logrotate
service name. logrotate service container will require two host path to be mounted.1.
/opt/easyengine
path of root directory of easyengine.2.
/var/lib/docker/volumes
path of docker volumes directory.docker-compose.yml content for logrotate service will be like following.
sagarnasit commentedon Jan 7, 2019
@mbtamuli
Container for logrotate service keeps restarting. I and @mrrobot47 tried to debug the issue but no luck with it. Can you check what is the issue?
Check Dockerfile and script added recently in PR for more detail.
sagarnasit commentedon Jan 10, 2019
@mbtamuli Check this out. Maybe helpful for us.
https://docs.docker.com/config/containers/logging/configure/
dhsathiya commentedon Jul 31, 2020
n
number of sites./opt/easyengine/logs/ee.log
Example log
Nginx-proxy
fabiomontefuscolo commentedon Jul 9, 2021
Why in the first config you have to reload services and in the second you simply use copytruncate?
dhsathiya commentedon Jul 10, 2021
@fabiomontefuscolo The idea by then was to move the Nginx-proxy to reload only. But I decided to do it when implementing it in EE.
The difference between reload and copytruncate is here
Due to less overhead & faster speed, I am more leaning towards reload method only.
1 remaining item