Preparing for BMC Helix logging
You can deploy BMC Helix Platform Logging to collect logs. BMC Helix Platform Logging uses ElasticSearch, Fluentd, and Kibana (EFK).
Fluentd needs the following privileges:
- Kubernetes cluster
- PodSecurityPolicy - The installer creates the PodSecurityPolicy administrator with the host path enabled and the root runAsUser and runAsGroup settings as shown in the file.
- ClusterRole and ClusterRoleBinding - The installer creates the ClusterRole and ClusterRoleBinding objects with the rules that are mentioned in the file.
- OpenShift cluster
- Role and RoleBinding - The installer creates a role with the security context content as privileged and the rolebinding object with the rules that are mentioned in the file.
The ElasticSearch and Kibana services use the following ports:
Perform the following tasks before deploying BMC Helix IT Operations Management:
Create a namespace called bmc-helix-logging by using the following command:
kubectl create ns bmc-helix-loggingThe Elasticsearch, FluentD, and Kibana services are installed in this namespace. These services are required to access logs from the pods that are running on BMC Helix Platform.
In the helix-on-prem-deployment-manager-<release_version>/configs/deployment.config file, change the value of the BMC_HELIX_LOGGING parameter to yes as shown below:
BMC_HELIX_LOGGING=yesIn the files shown in the following table, edit the default values of the ESLOG_MASTER_STORAGE_SIZE and ESLOG_DATA_STORAGE_SIZE parameters according to your deployment size:
For example, in the internal PSR, 180 GB of space was consumed in 24 hours for a single namespace. You can change these values based on the namespaces and applications in the cluster.
- (Optional) Change the log retention period from the default 07 days.
- Open the configs/bmc-helix-logging.config file.
Set the value in days for the ESLOG_RETENTION_PERIOD parameter.
For example, to set the log retention for 30 days, set the ESLOG_RETENTION_PERIOD parameter as shown below:
ESLOG_RETENTION_PERIOD=30
- (Optional) View logs on the Kibana user interface.
- From the config/infra.config file, obtain the load balancer URL and run it with the KIBANA_LB_HOST variable added before the URL.
For example: https://kibana.apexglobal.bmc.com - In the Kibana login screen, enter elastic as the default user name.
- Enter the Kibana password that is added in the commons/certs/secrets.txt file and click Log In.
You can see the Kibana logs on the Home page.
- From the config/infra.config file, obtain the load balancer URL and run it with the KIBANA_LB_HOST variable added before the URL.