Enabling Log search for the pods

You need to enable the Log search feature before you can use Log search console in the pods.

Before you begin

  • You have installed and configured OpenSearch on a cluster. For more information see, Installing OpenSearch.
  • You have installed and configured Fluentd 1.16.4.

About this task

When you enable the log search feature, the Fluentd service is deployed as a sidecar along with the productmaster-admin, productmaster-restapi, productmaster-sch, and productmaster-wfl pods. The Fluentd collects all the logs from these pods and indexes them in the OpenSearch.

Note:
  • Fluentd image is downloaded from the dockerhub.
  • If you cannot access this registry, download the image, and use through your private registry. Modify the ipm_14.0.x_cr.yaml file and update the image details under the fluentd_service section.

Procedure

  1. Modify the app_secrets.yaml file and update the following OpenSearch details for the Log search feature.
    • opensearch_host
    • opensearch_user
    • opensearch_pass
    • opensearch_port
  2. Modify the ipm_14.0.x_cr.yaml file and update the following. To enable log search feature, in the enable section, under the openshift subsection, update the value of the logsearch property to 1.
    Section Subsection Property Description
    deployment_platform openshift enable

    Set the value to1.

    enable   logsearch

    Set the value to1.

What to do next

Log in to the Persona-based UI and navigate to the Utilities > Log search > Log search console to use the Log search feature.