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 11Before you begin
- You have installed and configured OpenSearch on a cluster. For more information see, Installing OpenSearch on an Red Hat OpenShift Container Platform.
- You have installed and configured Fluentd 1.16.4. For more information, see Download Fluentd.
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
- 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>"
- 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 to
1
.enable logsearch Set the value to
1
.
What to do next
Log in to the Persona-based UI and navigate to the
to use the Log search feature.