本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
示例: AppStream 2.0 日志文件条目
跟踪是一种配置,允许将事件作为日志文件传输到您指定的 Amazon S3 存储桶。 CloudTrail 日志文件包含一个或多个日志条目。事件代表来自任何来源的单个请求,包括有关请求的操作、操作的日期和时间、请求参数等的信息。 CloudTrail 日志文件不是公共API调用的有序堆栈跟踪,因此它们不会按任何特定的顺序出现。
以下示例显示了演示该AssociateFleet
事件的 CloudTrail 日志条目。
{ "eventVersion": "1.05", "userIdentity": { "type": "AssumedRole", "principalId": "AIDACKCEVSQ6C2EXAMPLE:janeroe", "arn": "arn:aws:sts:: 123456789012:assumed-role/Admin/janeroe", "accountId": "123456789012", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-03-12T06:41:50Z" }, "sessionIssuer": { "type": "Role", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam:: 123456789012:role/Admin", "accountId": "123456789012", "userName": "Admin" } } }, "eventTime": "2019-03-12T06:58:09Z", "eventSource": "appstream.amazonaws.com", "eventName": "AssociateFleet", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.15", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36", "requestParameters": { "fleetName": "ExampleFleet1", "stackName": "ExampleStack1" }, "responseElements": null, "requestID": "3210a159-4494-11e9-8017-873084baf125", "eventID": "a6fbde60-a55a-46fe-87d4-89ead558dffd", "eventType": "AwsApiCall", "recipientAccountId": "123456789012" }
以下示例显示了一个 CloudTrail 日志条目,该条目演示了使用 AppStream 2.0 图像生成器创建图像时CreateImage
发生的事件。
{ "eventVersion": "1.05", "userIdentity": { "arn": "arn:aws:appstream:us-east-1: 123456789012:image-builder/ExampleImageBuilder", "accountId": "123456789012" }, "eventTime": "2019-03-21T22:32:05Z", "eventSource": "appstream.amazonaws.com", "eventName": "CreateImage", "awsRegion": "us-east-1", "requestParameters": null, "responseElements": null, "eventID": "12b2d6e2-c9a9-402e-8886-2c388d3df610", "readOnly": false, "eventType": "AwsServiceEvent", "recipientAccountId": "123456789012", "serviceEventDetails": { "ImageName": "ExampleImage1", "ImagePlatform": "WINDOWS", "PublicBaseImageReleasedDate": "Tue Jan 15 22:19:56 UTC 2019", "ImageDisPlayName": "Example Image 1", "ImageBuilderSupported": "True", "ImageCreatedTime": "Thu Mar 21 22:32:05 UTC 2019", "ImageDescription": "Example image for testing", "ImageState": "PENDING" } }