Enabling Log search for the pods

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

Fix Pack 11

Before you begin

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_12.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
    apiVersion: v1
    kind: Secret
    metadata:
      name: app-secret
      namespace: <namespace>
    type: Opaque
    stringData:
      opensearch_host: "https://<OpenSearch hostname>"
      opensearch_user: "<OpenSearch username>"
      opensearch_pass: "<OpenSearch password>"
      opensearch_port: "<OpenSearch port>"
      opensearch_ssl_crt: "<OpenSearch plain text ssl certificate>"
  2. Modify the ipm_12.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.