IBM Cloud Docs
Logging for Secrets Manager

Logging for Secrets Manager

Use the IBM® Log Analysis service to view IBM Cloud® Secrets Manager logs for your instance.

With IBM Log Analysis, administrators, DevOps teams, and developers can review log data, define alerts, and design custom views to monitor application and system logs. For more information, see the Log Analysis docs.

Before you begin

If you're working with Log Analysis for the first time, be sure that you create an instance in the same location as your Secrets Manager instance. For more information, see Configuring platform logs through the Observability dashboard.

Viewing logs

Logs that are generated by a Secrets Manager service instance are forwarded automatically to the Log Analysis instance that is available in the same location.

Only logs with the level ERROR are forwarded.

To view Secrets Manager logs, complete the following steps:

  1. Log in to the IBM Cloud console.

  2. Go to IBM Cloud > Observability to access your Observability dashboard.

  3. From the navigation menu, click Logging.

  4. Select a Log Analysis instance, and click Open Dashboard.

    Don't have a Log Analysis instance? Create an instance in the same location as your Secrets Manager instance. Then, click Configure platform logs to receive logs from supported services in your account.

  5. In the logging UI, filter by secrets-manager to view logs that are generated by Secrets Manager.

    For more information about searching and filtering logs, check out the Log Analysis documentation.

Analyzing logs

You can create views and alerts from all of your Secrets Manager instances, or from a specific instance.
To target a specific instance, replace host:secrets-manager with app:{INSTANCE_CRN}.

Query for finding all errors from all instances

Run the following query to find all errors from all of your instances.

host:secrets-manager

Query for finding all errors from a specific instance

Run the following query to find all errors from a specific instance.

app:crn:v1:bluemix:public:secrets-manager:au-syd:a/9add8f16c5a24a6ea8ce5d8b89b15b28:ee536f33-48ce-4125-ae4a-37b46cdc802d::

To learn more about creating views and alerts, see the IBM Cloud Logs documentation.