Configuring AWS Secrets Manager Logs to be Pushed to AWS CloudWatch

0

How can I configure AWS Secrets Manager logs to be pushed to AWS CloudWatch? I would like to ensure that all logs records from my existing Secrets Manager are sent to CloudWatch for centralized logging and monitoring.

3回答
0

You can either use Cloudtrail or CloudWatch to monitor you secrets: https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html

profile picture
エキスパート
回答済み 1年前
0

What logs do you need from AWS Secrets Manager?
For example, API event history as output to CloudTrail?
From the following documentation, I don't think there is any setting that outputs directly to CloudWatch Logs.
Therefore, in some cases, it may be necessary to create a function that uses Lambda or other means to retrieve events from CloudTrail and send them to CloudWatch Logs.
https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html

Alternatively, all API events recorded in CloudTrail can be linked to CloudWatch Logs.
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/send-cloudtrail-events-to-cloudwatch-logs.html

profile picture
エキスパート
回答済み 1年前
0
  1. Open the AWS Secrets Manager console.
  2. Select the Secrets Manager secret for which you want to configure logging.
  3. Under the "Secret details" section, click on the "Edit" button.
  4. Scroll down to the "Logging" section.
  5. Enable the "Enable automatic rotation and log rotation" option if it is not already enabled. This ensures that the secret's logs are generated.
  6. Select the CloudWatch log group where you want the logs to be sent. You can choose an existing log group or create a new one. If you choose to create a new log group, provide a name for it
  7. Click the "Save" button to save the changes.
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ