To enable unified logging, Fluent Bit binaries and configurations are provided with the baseline PAS for OpenEdge container. The container image consists of the startup scripts, for starting and deploying applications in the /deploy/scripts directory. The startup script (startServer.sh) uses a flag to enable Fluent Bit.

To enable Fluent Bit logging, configure the following environment variables in the container:
  • FLUENTBIT_LOGGING—Set this environment variable to true to enable log management with the Fluent Bit setup in the container. After this flag is set to true, and the container starts, the following command is executed:
    /usr/local/bin/fluent-bit -c /etc/fluent-bit/fluent-bit.conf
  • INSTANCE_NAME—Set this environment variable to the name of the PAS for OpenEdge instance.
  • APP_NAME—Set this environment variable to the logical name for the application to display in the logs.
Note: The setup-fluentbit.sh file is part of the startup script and is run after the application is deployed, before starting the Fluent Bit process. This script tailors the Fluent Bit configuration for PAS for OpenEdge application logs.

If you use the provided deployment scripts, Fluent Bit logging is enabled by default. For more information about the deployment process and how to deploy an application using these scripts, see Run PAS for OpenEdge in a Docker Container.

The attributes you need for Fluent Bit logging are located in the config.properties file:
  • FLUENTBIT.LOGGING=true
  • PAS.INSTANCE.NAME=INSTANCE_NAME
  • APP.DOCKER.IMAGE.NAME=APP_NAME

After you complete the configurations and Fluent Bit is started, you can view the logs by using the docker logs container_name command. The following image is a sample of how the logs are displayed.

Note: If you are using a Kubernetes environment, you can also view the logs using: kubectl logs pod_name.