stable
Clone or download
As of today it only focus on Tuleap & Nginx to introduce the logic. There are 2 new environement variables that can be used: - TULEAP_LOGGER (either `syslog` or not set / empty) - TULEAP_LOG_SERVER (a given log host server like `myserver:514`) As of today, you can set `TULEAP_LOGGER` to syslog and observe the log traffic in /var/log/messages (nginx traffic for instance). For `TULEAP_LOG_SERVER`, I didn't tested myself as it requires a log server to test. My goal is to test `tuleap-devel` and our brand new log server. nginx configuration was also updated to not log access to assets in 03-location.conf in order to reduce the amount of logs being captured and have more meaningful access logs. go in `plugins/tee_container/docker` and run `docker-compose up` You need to have nexus account with Read access to docker.tuleap.org and you need to login on this registry first. When the stack is up and running, you should go in the web container and see in /var/log/messages that nginx access and error logs are there. Part of request #14864 Centralize logs in syslog & log forwarding Change-Id: I979de8cc358d04d8c8f4d203bb46a8a87a6dd119
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tee_container/docker/docker-compose.yml | +4 | −2 | Go to diff View file |
M | plugins/tee_container/include/StartContainerCommand.php | +7 | −2 | Go to diff View file |
M | src/common/CLI/Command/ConfigSetCommand.php | +16 | −33 | Go to diff View file |
M | src/common/CLI/Events/GetWhitelistedKeys.php | +10 | −5 | Go to diff View file |
A | src/common/Config/ConfigSet.php | +61 | −0 | Go to diff View file |
M | src/common/Config/ForgeConfig.php | +10 | −0 | Go to diff View file |
A | src/common/Config/InvalidConfigKeyException.php | +47 | −0 | Go to diff View file |
M | src/common/backend/BackendLogger.class.php | +1 | −1 | Go to diff View file |
M | src/etc/nginx/tuleap.d/03-locations.conf | +1 | −0 | Go to diff View file |
A | src/tuleap-cfg/Command/Docker/LogToSyslog.php | +81 | −0 | Go to diff View file |
M | src/tuleap-cfg/Command/Docker/Rsyslog.php | +29 | −4 | Go to diff View file |
M | src/tuleap-cfg/Command/DockerAioRunCommand.php | +5 | −3 | Go to diff View file |
A | src/tuleap-cfg/resources/rsyslog/logforward.conf | +2 | −0 | Go to diff View file |
A | src/tuleap-cfg/resources/rsyslog/rsyslog-logforward.conf | +35 | −0 | Go to diff View file |
R | tools/docker/tuleap-aio-c7/rsyslog.conf | Go to diff View file | ||
M | src/utils/tuleap.php | +4 | −2 | Go to diff View file |
M | src/www/include/pre.php | +1 | −1 | Go to diff View file |