Configuring the Event Manager Gateway logging level
Learn how to configure the logging level for the Event Manager Gateway.
You can configure the Event Manager Gateway's logging level with the Red Hat® OpenShift® console, or with the OpenShift CLI.
Prerequisites
- The Event Manager Gateway must be installed and running. For more information, see: Installing the Event Manager Gateway
- For any steps that use the Red Hat OpenShift command-line interface
(CLI), you must be logged in to your OpenShift cluster with
oc login
.
Configuring the Event Manager Gateway logging level
The logging level determines the granularity of the messages that will appear in the Event Manager Gateway's logs. The Event Manager Gateway logging level is configured with the logLevel attribute.
The values that can be used for the logging level are:
- DEBUG
- INFORMATION
- WARN
- ERROR
- FATAL
Configuring the Event Manager Gateway logging level with the OpenShift console
- Log in to your OpenShift cluster's console.
- Select the Project where AI Manager is installed.
- Go to .
- Select IBM Watson AIOps AI Manager from the list of Installed Operators.
- Select Event Manager Gateway.
- Select your instance of the Event Manager Gateway.
- From the Actions list, select Edit EventManagerGateway.
- Select the YAML tab, and update the logging level to the required value.
For example, to change the logging level from WARN, where only warning, error, or fatal messages are logged, to DEBUG, where more detail is provided, make the following edit:
Change:
to:spec: logLevel:WARN
spec: logLevel:DEBUG
- To verify that your newly updated Event Manager Gateway is running, select it and then select Resources. After a few minutes, a new Event Manager Gateway pod is running.
Configuring the Event Manager Gateway logging level with the OpenShift CLI
- Run the following command to edit the existing YAML file on your AI Manager cluster:
Where:oc edit <emg.yaml> -n <namespace>
- <emg.yaml> is your Event Manager Gateway YAML file.
<namespace>
is the namespace that your AI Manager installation is deployed in.
- Update the logging level.
For example, to change the logging level from WARN, where only warning, error, or fatal messages are logged, to DEBUG, where more detail is provided, make the following edit:
Change:
to:spec: logLevel:WARN
spec: logLevel:DEBUG
- Run the following command to apply the contents of your updated YAML file to your IBM Cloud Pak® for WatsonAIOps AI Manager deployment.
Where:oc apply <emg.yaml> -n <namespace>
- <emg.yaml> is your Event Manager Gateway YAML file.
<namespace>
is the namespace that your AI Manager installation is deployed in.
- Verify that the Event Manager Gateway is updated by running the following
command:
After a few minutes, check that your newly updated Event Manager Gateway is listed with a recent timestamp.oc get eventmanagergateway -n <namespace>