Configuring the metrics bucket for an IBM Cloud Logs instance
Configure a bucket in IBM Cloud Object Storage to store metrics from logs for long term storage and search.
Prereqs
-
The IBM Cloud Object Storage service can be in the same account as your IBM Cloud Logs instance, or can be located in a different account.
-
You must have permissions to create a bucket in an IBM Cloud Object Storage instance or have the details of an existing bucket.
-
You must have permissions to configure a service to service authorization between the IBM Cloud Object Storage service and the IBM Cloud Logs service.
Configure an IAM Service to service authorization
You must define a service to service (S2S) authorization between IBM Cloud Logs and IBM Cloud Object Storage to allow IBM Cloud Logs to read and write data into the metrics bucket.
For more information, see:
Configure the metrics bucket
Complete the following steps to configure a metrics bucket for an IBM Cloud Logs instance:
-
Log in to your IBM Cloud account.
After you log in with your user ID and password, the IBM Cloud dashboard opens.
-
Click the Menu icon
> Observability.
-
Select Logging > Instances. You might need to click the Cloud Logs tab to see your IBM Cloud Logs instances.
-
Select Logging > Instances. Then, select the instance to which you want to configure a data bucket.
-
In the Storage section, select Connect in the Data bucket section.
-
Choose how to enter the bucket details in the Select bucket by section:
Choose Instance and select a COS instance and bucket if your IBM Cloud Logs instance and the bucket are located in the same account.
Choose Bucket CRN and enter the bucket CRN if your IBM Cloud Logs instance and the bucket are located in different accounts.
-
Configure the direct endpoint as the bucket endpoint.
Direct endpoints are used for requests originating from resources within VPCs. Direct endpoints provide better performance over Public endpoints and do not incur charges for any outgoing or incoming bandwidth even if the traffic is cross regions or across data centers. For more information, see Endpoint Types.
-
Click Save to save the configuration.
Once a bucket is connected to a IBM Cloud Logs instance, a bucket is always required. It can be changed but not removed.