How Fluentd-based CloudPoint logging works
When you install or upgrade CloudPoint, the following changes occur on the CloudPoint host:
A new container service named
flexsnap-fluentdis started on the CloudPoint host. This service is started before all the other CloudPoint container services. Theflexsnap-fluentdservice serves as thefluentddaemon on the host.All the CloudPoint container services are then started with
fluentdas the Docker logging driver.A
fluentdconfiguration file is created at/cloudpoint/fluent/fluent.conf.This file contains the output plug-in definitions that are used to determine where the CloudPoint logs are redirected for consumption.
Once all the infrastructure components are ready, each of the CloudPoint services begin to send their respective log messages to the configured Docker fluentd logging driver. The fluentd daemon then redirects the structured logs to the output plug-ins configured in the fluentd configuration file. These logs are then sent to the /cloudpoint/logs/flexsnap.log file on the CloudPoint host.
Note that the flexsnap.log file gets rotated after the file size reaches a maximum of 100 MB. A total of 30 generations (rotated files) of the flexsnap.log file are maintained. These conditions are applicable because of the new log file rotate (log-rotate-age) and log size (log-rotate-size) command options that are introduced in the fluentd command.