Tracking logs on edx-platform
rsyslog
edx-platform tracking logs are currently configured to send to an rsyslog process. Rsyslog can be configured to forward tracking logs to various places, including specific files or other servers.
More info on rsyslog configuration:
https://www.thegeekdiary.com/understanding-the-etc-rsyslog-conf-file-for-configuring-system-logging/
25.3. Basic Configuration of Rsyslog | Red Hat Product Documentation
Alternative Logging Handlers
While SysLogHandler
is the class being used for platform tracking logs, that setting can be overwritten to support various other log handlers.
Some alternative classes include:
Useful for sending data to a remote machine
Pickles data prior to sending, so the remote machine must be able to unpickle
Allows user to specify which file to write logs to
Eats up disk space if there is no separate log rotation process
Similar to FileHandler, but handles process of log rotation
Fluentd
Fluentd is an open source log collector that can be run alongside an application. Because rsyslog cannot run inside of a docker container, fluentd can be used as an alternative log processor.
edx-platform’s current reliance on rsyslog does not easily translate to running in a container, which is why fluentd is being explored as an alternative.
More info on fluentd: