stable

Clone or download

Read-only

Forward application logs to a Graylog server

Leveraging monolog adapters it's now easy to forward logs to a graylog server. There are new variables to configure (config-set): - graylog2_server - graylog2_port - graylog2_ssl And finally: tuleap config-set sys_logger graylog2 Note: by default it will log using TCP transport, that might not be scalable enough on high traffic sites but this is mandatory for out of the box usage of TLS. In case of overloading, we should log in UDP and have something in between to make the proxy. In order to test, if you know admins that have a working graylog2 server, request them to create a new input for you ;) Part of request #14878 Forward logs to Graylog server Change-Id: I726fbe093e415c72da31027d3ccea32d193d1a93

Modified Files

Name
M plugins/archivedeleteditems/include/ArchiveLogger.php +1 −1 Go to diff View file
M plugins/ldap/include/LdapLogger.php +1 −1 Go to diff View file
M src/common/CLI/Events/GetWhitelistedKeys.php +14 −9 Go to diff View file
M src/common/Config/ForgeConfig.php +9 −1 Go to diff View file
M src/common/backend/BackendLogger.class.php +35 −29 Go to diff View file
A src/common/log/IncludeBacktraceProcessor.php +67 −0 Go to diff View file
A src/common/log/LogToFiles.php +47 −0 Go to diff View file
A src/common/log/LogToGraylog2.php +85 −0 Go to diff View file
A src/common/log/LogToSyslog.php +53 −0 Go to diff View file
A src/common/log/UnableToSetupHandlerException.php +32 −0 Go to diff View file
M src/composer.json +1 −0 Go to diff View file
M src/composer.lock +117 −1 Go to diff View file
M src/tuleap-cfg/Command/Docker/LogToSyslog.php +4 −3 Go to diff View file
M tests/unit/common/Backend/BackendLoggerTest.php +21 −0 Go to diff View file