FEPCluster generates log files and auditlog files, if configured, over the lifetime of execuation. These log files can be useful for understanding cluster healthness and debugging purpose. By default, the log files are stored on persistent volume of the container. User can enable log monitoring feature by forwarding those log files and auditlog files to a analytics platform such as Elasticsearch.
There are two steps to enable monitoring and forwarding.
FEPLogging Configuration - Creating FEP Logging instance
FEPCluster configuration - Enabling logging in FEPCluster
The FEP Logging instance is a standalone container running fluentd. It accepts log forwarded from FEP Clusters and aggagrate data according to log entries severity and present that to Prometheus for monitoring and alerting purpose. It can optionally be configured to forward those logs to an Elasticsearch instance for detail analysis.
The Fujitsu Enterprise Postgres operator can forward PostgreSQL logs to supported destinations via Fluent-Bit. For more flexibility in choosing where to forward your logs, refer to "4.10.2 Configuring FEPCluster Remote Logging".
When logging is enabled on FEPCluster, a sidecar, containing fluentbit, will be deployed alongside the FEP server container. This fluentbit sidecar will monitor the FEP server log files and auditlog files on persistent volume and forward to the FEP Logging instance.
Multiple FEPClusters can forward logs to single FEPLogging instance.
User can have two types of connection between FEPCluster & FEPLogging
Insecure connection: Without TLS/MTLS certificates
Secure connection: With TLS/MTLS certificates
For the secure connections between the components, User have two options:
User can use their own certificates
User can generate self signed certificates (see "4.8.2.2 Automatic Certificate Management")
The FEP Logging instance can run standalone without additional component. For detail log analysis, the user can configure the FEP Logging instance to forward logs to Elastic Stack or Elastic Cloud. Please consult the Elastic Document on how to deploy a Elastic Stack or sign up to Elastic Cloud.