{"id":1205,"date":"2025-05-06T13:09:05","date_gmt":"2025-05-06T05:09:05","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=1205"},"modified":"2025-06-09T14:06:30","modified_gmt":"2025-06-09T06:06:30","slug":"aws-logs-monitor-cloudtrail","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/zh_hk\/aws-logs-monitor-cloudtrail\/","title":{"rendered":"AWS \u65e5\u8a8c\u76e3\u63a7CloudTrail"},"content":{"rendered":"<p>AWS CloudTrail\u662f\u4e9e\u99ac\u905c\u7db2\u8def\u670d\u52d9\uff08AWS\uff09\u7684\u53e6\u4e00\u9805\u670d\u52d9\uff0c\u70ba\u4f60\u7684AWS\u5e33\u6236\u63d0\u4f9b\u7a3d\u6838\u3001\u6cbb\u7406\u3001\u76e3\u63a7\u3001\u5408\u898f\u6027\u548c\u98a8\u96aa\u76e3\u63a7\u3002 CloudTrail\u662f\u4e00\u7a2e\u8a18\u9304\u670d\u52d9\uff0c\u53ef\u8a18\u9304\u5f9e\u4efb\u4f55\u5916\u90e8\u5de5\u5177\u7522\u751f\u7684\u4e8b\u4ef6\u6216\u884c\u52d5\uff0c\u5982AWS\u63a7\u5236\u53f0\u3001AWS CLI\u548cSDK\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528CloudTrail\u8f15\u9b06\u5075\u6e2c\u4f60\u7684\u5e33\u6236\u4e2d\u7684\u4efb\u4f55\u7570\u5e38\u6d3b\u52d5\u3002\u6211\u5011<strong>Oncloud AI<\/strong>\u900f\u904e\u672c\u6587\u5e6b\u52a9\u60a8\u4e86\u89e3\u4e9e\u99ac\u905cCloudWatch\u3002<\/p>\n<h3>\u4ec0\u9ebc\u662fAWS CloudTrail\uff1f<\/h3>\n<p>AWS CloudTrail \u63d0\u4f9bAWS \u5e33\u6236\u5167\u57f7\u884c\u7684\u6240\u6709\u64cd\u4f5c\u7684\u8a73\u7d30\u8a18\u9304\u3002\u9019\u5305\u62ec\u7528\u6236\u3001\u670d\u52d9\u548c\u61c9\u7528\u7a0b\u5f0f\u57f7\u884c\u7684\u64cd\u4f5c\u3002 CloudTrail \u8a18\u9304AWS \u5e33\u6236\u5167\u7684\u6240\u6709API \u6d3b\u52d5\u3002<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-1210 aligncenter\" src=\"http:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/11\/5732ae8d-0829-4b85-9b72-0fed5a30cfc0-300x157.avif\" alt=\"\" width=\"575\" height=\"300\" srcset=\"https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/11\/5732ae8d-0829-4b85-9b72-0fed5a30cfc0-300x157.avif 300w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/11\/5732ae8d-0829-4b85-9b72-0fed5a30cfc0-1024x534.avif 1024w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/11\/5732ae8d-0829-4b85-9b72-0fed5a30cfc0-768x401.avif 768w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/11\/5732ae8d-0829-4b85-9b72-0fed5a30cfc0-1536x801.avif 1536w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/11\/5732ae8d-0829-4b85-9b72-0fed5a30cfc0.avif 1654w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/p>\n<p>CloudTrail \u901a\u5e38\u7528\u65bc\u7a3d\u6838\u6a5f\u5236\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u60f3\u77e5\u9053\u54ea\u500b\u4f7f\u7528\u8005\u8b8a\u66f4\u4e86\u5132\u5b58\u6876\u7684\u53ef\u898b\u6027\u8a2d\u5b9a\u3002\u60a8\u53ef\u4ee5\u5728CloudTrail \u670d\u52d9\u4e2d\u627e\u5230\u6b64\u8cc7\u8a0a\u3002<\/p>\n<h3 id=\"heading-how-to-use-cloudtrail\" class=\"permalink-heading\">\u512a\u52e2<\/h3>\n<p>\u900f\u904eAWS CloudTrail \u8a18\u9304\u7684\u4e8b\u4ef6\u6b77\u53f2\uff0c\u6975\u5927\u7c21\u5316\u4e86\u5b89\u5168\u5206\u6790\u3001\u8cc7\u6e90\u8b8a\u5316\u8ffd\u8e64\u548c\u6545\u969c\u6392\u9664\u7684\u5de5\u4f5c\u3002<\/p>\n<h3>\u5de5\u4f5c\u539f\u7406<\/h3>\n<div>\n<div>\n<p>AWS CloudTrail\u8a18\u9304\u5728\u7d66\u5b9a\u7684AWS\u8a2d\u5b9a\u4e2d\u57f7\u884c\u7684\u6d3b\u52d5\uff0c\u4e26\u5075\u6e2c\u4efb\u4f55\u4e0d\u5c0b\u5e38\u7684API\u4f7f\u7528\uff0c\u7136\u5f8c\u5b83\u9084\u9032\u884cl\u4e8b\u4ef6\u8ffd\u8e64\u548c\u6d3b\u52d5\u8a18\u9304\u3002\u7522\u751f\u7684\u9019\u4e9b\u4e8b\u4ef6\u5c07\u6703\u50b3\u905e\u5230AWS CloudTrail\u63a7\u5236\u53f0\u3001CloudWatch\u65e5\u8a8c\u548cS3\u6876\u3002<\/p>\n<p>\u900f\u904e\u4f7f\u7528CloudWatch \u4e8b\u4ef6\u548cAlarms\uff0cCloudTrail \u5728\u767c\u73fe\u4efb\u4f55\u7570\u5e38\u4e8b\u4ef6\u6642\u90fd\u6703\u63a1\u53d6\u5fc5\u8981\u7684\u884c\u52d5\u3002\u4f7f\u7528\u8005\u53ef\u4ee5\u5728CloudTrail \u63a7\u5236\u53f0\u4e2d\u67e5\u770b\u6240\u6709\u6700\u8fd1\u7684\u884c\u52d5\u548c\u4e8b\u4ef6\uff0c\u540c\u6642\u9084\u53ef\u4ee5\u4f7f\u7528\u6b77\u53f2\u8a18\u9304\u4e0b\u8f09CloudTrail \u6d3b\u52d5\u8a18\u9304\u3002<\/p>\n<p><b>Oncloud AI<\/b>\u8eab\u70baAWS\u4ee3\u7406\u5546\uff0c\u63d0\u4f9b\u4e9e\u99ac\u905c\u96f2\u7aef\u670d\u52d9\uff0c\u652f\u63f4\u4e9e\u99ac\u905c\u96f2\u7aef\u4f3a\u670d\u5668AWS\u4ee3\u4ed8\u3001AWS\u9077\u79fb\u3001AWS\u7dad\u904b\u8a17\u7ba1\u7b49\u670d\u52d9\uff0c\u5982\u6709\u76f8\u95dc\u9700\u6c42\u53ef\u806f\u7e6b<strong>Oncloud AI<\/strong>\u3002<\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>AWS CloudTrail\u662f\u4e9e\u99ac\u905c\u7db2\u8def\u670d\u52d9\uff08AWS\uff09\u7684\u53e6\u4e00\u9805\u670d\u52d9\uff0c\u70ba\u4f60\u7684AWS\u5e33\u6236\u63d0\u4f9b\u7a3d\u6838\u3001\u6cbb\u7406\u3001\u76e3\u63a7\u3001\u5408\u898f\u6027\u548c\u98a8\u96aa\u76e3\u63a7\u3002 CloudTrail\u662f\u4e00\u7a2e\u8a18\u9304\u670d\u52d9\uff0c\u53ef\u8a18\u9304\u5f9e\u4efb\u4f55\u5916\u90e8\u5de5\u5177\u7522\u751f\u7684\u4e8b\u4ef6\u6216\u884c\u52d5\uff0c\u5982AWS\u63a7\u5236\u53f0\u3001AWS CLI\u548cSDK\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528CloudTrail\u8f15\u9b06\u5730\u5075\u6e2c\u4f60\u7684\u5e33\u6236\u4e2d\u7684\u4efb\u4f55\u7570\u5e38\u6d3b\u52d5\u3002<\/p>","protected":false},"author":1,"featured_media":1211,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-1205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/1205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/comments?post=1205"}],"version-history":[{"count":0,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/1205\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media\/1211"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media?parent=1205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/categories?post=1205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/tags?post=1205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}