

Amazon Monitron は新規顧客に公開されなくなりました。既存のお客様は、通常どおりサービスを引き続き使用できます。Amazon Monitron に似た機能については、[ブログ記事](https://aws.amazon.com/blogs/machine-learning/maintain-access-and-consider-alternatives-for-amazon-monitron)を参照してください。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 例: Amazon Monitron ログファイルのエントリ
<a name="understanding-service-name-entries"></a>

証跡は、指定した Amazon S3 バケットにイベントをログファイルとして配信するように設定できます。CloudTrail のログファイルは、単一か複数のログエントリを含みます。イベントは、任意の出典からの単一のリクエストを表し、リクエストされたアクション、アクションの日時、リクエストパラメータなどに関する情報が含まれます。CloudTrail ログファイルは、パブリック API 呼び出しの順序付けられたスタックトレースではないため、特定の順序では表示されません。

次の例は、プロジェクト削除 (`DeleteProject`) アクションの CloudTrail ログエントリです。

**Topics**
+ [DeleteProject アクション成功](#collapsible-section-1)
+ [DeleteProject アクション失敗 (認可エラー)](#collapsible-section-2)
+ [DeleteProject アクション失敗 (競合の例外エラー)](#collapsible-section-3)

## DeleteProject アクション成功
<a name="collapsible-section-1"></a>

次の例は、`DeleteProject` アクション成功時に CloudTrail ログに表示される内容を示しています。

```
{
  "eventVersion": "1.05",
  "userIdentity": {
    "type": "AssumedRole",
    "principalId": "{{principal ID}}",
    "arn": "{{ARN}}",
    "accountId": "{{account ID}}",
    "accessKeyId": "{{access key ID}}",
    "sessionContext": {
      "sessionIssuer": {
        "type": "Role",
        "principalId": "{{principal ID}}",
        "arn": "{{ARN}}",
        "accountId": "{{account ID}}",
        "userName": "{{user name}}"
      },
      "webIdFederationData": {},
      "attributes": {
        "mfaAuthenticated": "false",
        "creationDate": "{{timestamp}}"
      }
    }
  },
  "eventTime": "{{timestamp}}",
  "eventSource": "monitron.amazonaws.com",
  "eventName": "DeleteProject",
  "awsRegion": "{{region}}",
  "sourceIPAddress": "{{source IP address}}",
  "userAgent": "{{user agent}}",
  "requestParameters": {
    "Name": "{{name}}"
  },
  "responseElements": {
    "Name": "{{name}}"
  },
  "requestID": "{{request ID}}",
  "eventID": "{{event ID}}",
  "readOnly": false,
  "eventType": "AwsApiCall",
  "recipientAccountId": "{{account ID}}"
}
```

## DeleteProject アクション失敗 (認可エラー)
<a name="collapsible-section-2"></a>

次の例は、エラーが発生して `DeleteProject` アクションが失敗した後に CloudTrail ログに表示される内容を示しています。この場合のエラーは認可エラーで、ユーザーには指定されたプロジェクトを削除する権限がありません。

```
{
    "eventVersion": "1.05",
    "userIdentity": {
        "type": "IAMUser",
        "principalId": "{{principal ID}}",
        "arn": "{{ARN}}",
        "accountId": "{{account ID}}",
        "accessKeyId": "{{access key ID}}",
        "userName": "{{user name}}",
        "sessionContext": {
            "sessionIssuer": {},
            "webIdFederationData": {},
            "attributes": {
                "mfaAuthenticated": "false",
                "creationDate": "{{timestamp}}"
            }
        }
    },
    "eventTime": "{{timestamp}}",
    "eventSource": "monitron.amazonaws.com",
    "eventName": "DeleteProject",
    "awsRegion": "{{region}}",
    "sourceIPAddress": "{{source IP address}}",
    "userAgent": "{{user agent}}",
    "errorCode": "AccessDenied",
    "requestParameters": {
        "Name": "{{name}}"
    },
    "responseElements": {
        "Message": "User: {{user ARN}} is not authorized to perform: monitron:DeleteProject on resource: {{resource ARN}}"
    },
    "requestID": "{{request ID}}",
    "eventID": "{{event ID}}",
    "readOnly": false,
    "eventType": "AwsApiCall",
    "recipientAccountId": "{{account ID}}"
}
```

## DeleteProject アクション失敗 (競合の例外エラー)
<a name="collapsible-section-3"></a>

次の例は、エラーが発生して `DeleteProject` アクションが失敗した後に CloudTrail ログに表示される内容を示しています。この場合のエラーは競合の例外で、Amazon Monitron がプロジェクトを削除しようとしてもセンサーが残っているというものです。

```
{
  "eventVersion": "1.05",
  "userIdentity": {
    "type": "AssumedRole",
    "principalId": "{{principal ID}}",
    "arn": "{{ARN}}",
    "accountId": "{{account ID}}",
    "accessKeyId": "{{access key ID}}",
    "sessionContext": {
      "sessionIssuer": {
        "type": "Role",
        "principalId": "{{principal ID}}",
        "arn": "{{ARN}}",
        "accountId": "{{account ID}}",
        "userName": "{{user name}}"
      },
      "webIdFederationData": {},
      "attributes": {
        "mfaAuthenticated": "false",
        "creationDate": "{{timestamp}}"
      }
    }
  },
  "eventTime": "{{timestamp}}",
  "eventSource": "monitron.amazonaws.com",
  "eventName": "DeleteProject",
  "awsRegion": "{{region}}",
  "sourceIPAddress": "{{source IP address}}",
  "userAgent": "{{user agent}}",
  "errorCode": "ConflictException",
  "requestParameters": {
    "Name": "{{name}}"
  },
  "responseElements": {
    "message": "This project still has sensors associated to it and cannot be deleted."
  },
  "requestID": "{{request ID}}",
  "eventID": "{{event ID}}",
  "readOnly": false,
  "eventType": "AwsApiCall",
  "recipientAccountId": "{{account ID}}"
}
```