예: Amazon Monitron 로그 파일 항목 - Amazon Monitron

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

예: Amazon Monitron 로그 파일 항목

추적이란 지정한 Amazon S3 버킷에 이벤트를 로그 파일로 입력할 수 있게 하는 구성입니다. CloudTrail 로그 파일에는 하나 이상의 로그 항목이 포함될 수 있습니다. 이벤트는 모든 소스의 단일 요청을 나타내며 요청된 작업, 작업 날짜와 시간, 요청 파라미터 등에 대한 정보를 포함합니다. CloudTrail 로그 파일은 퍼블릭 API 직접 호출의 주문 스택 트레이스가 아니므로 특정 순서로 표시되지 않습니다.

다음 예제에는 프로젝트 삭제(DeleteProject) 작업을 보여주는 CloudTrail 로그 항목이 나와 있습니다.

DeleteProject 작업 성공

다음 예는 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 작업 실패(권한 부여 오류)

다음 예는 오류 발생으로 인해 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 작업 실패(충돌 예외 오류)

다음 예는 오류 발생으로 인해 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" }