{"id":15453,"date":"2021-12-07T11:34:09","date_gmt":"2021-12-07T02:34:09","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=15453"},"modified":"2023-05-27T17:51:57","modified_gmt":"2023-05-27T08:51:57","slug":"%e3%80%90aws%e3%80%91cloudwatch%e3%81%ae%e4%bb%95%e7%b5%84%e3%81%bf","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=15453","title":{"rendered":"\u3010AWS\u3011cloudwatch\u306e\u4ed5\u7d44\u307f\u3001\u76e3\u8996\u8a2d\u8a08\u306a\u3069"},"content":{"rendered":"<h2>CloudWatch\u3068\u306f\uff1f<\/h2>\n<p>AWS\u30b5\u30fc\u30d3\u30b9\u306e\u76e3\u8996\u3084\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u95be\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u3044\u3066\u305d\u308c\u3092\u305d\u308c\u3092\u8d85\u3048\u305f\u3089Amazon SNS\u3092\u4f7f\u3063\u3066\u901a\u77e5\u3092\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Amazon SNS\u3068\u306f\uff1f<\/h3>\n<p>AWS\u306e\u901a\u77e5\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002Topic\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067Publisher\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3066Subscriber\u304c\u901a\u77e5\u3092\u53d7\u4fe1\u3059\u308b\u305f\u3081\u306e\u901a\u4fe1\u30c1\u30e3\u30f3\u30cd\u30eb\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3<\/h4>\n<p>Topic\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u3067\u304d\u3066\u901a\u77e5\u5148\u306eemail\u30a2\u30c9\u30ec\u30b9\u3092\u4fdd\u6301\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Cloud Watch\u306e\u8a2d\u5b9a<\/h2>\n<p>\u30a2\u30e9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<h2>\u4fdd\u6301\u671f\u9593<\/h2>\n<p>\u6c38\u4e45\u4fdd\u7ba1\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u6ce8\u610f\u70b9<\/h2>\n<p>\u30e1\u30e2\u30ea\u306e\u76e3\u8996\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3067\u3059\u3002\u30e1\u30e2\u30ea\u3092\u76e3\u8996\u3057\u305f\u3044\u5834\u5408\u306f\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<h2>\u69cb\u9020<\/h2>\n<pre class=\"lang:default decode:true\">\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\r\n\u2514\u30ed\u30b0\u30b9\u30c8\u30ea\u30fc\u30e0\r\n\u3000\u3000\u3000\u3000\u3000\u2514\u30ed\u30b0\u30a4\u30d9\u30f3\u30c8<\/pre>\n<h3>\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7<\/h3>\n<ul>\n<li>\u8907\u6570\u306e\u30ed\u30b0\u30b9\u30c8\u30ea\u30fc\u30e0\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>\u4fdd\u6301\u3001\u76e3\u8996\u3001\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306b\u3064\u3044\u3066\u540c\u3058\u8a2d\u5b9a\u3092\u5171\u6709\u3059\u308b\u30b0\u30eb\u30fc\u30d7\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u5177\u4f53\u7684\u306b\u306f\u3001<span style=\"color: #ff0000;\"><strong>EC2\u3084Fargate\u306e\u30db\u30b9\u30c8\u540d<\/strong><\/span>\u306a\u3069\u304c\u3053\u3053\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\u30ed\u30b0\u30b9\u30c8\u30ea\u30fc\u30e0<\/h3>\n<ul>\n<li>\u8907\u6570\u306e\u30ed\u30b0\u30a4\u30d9\u30f3\u30c8\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u9806\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u8868\u3057\u307e\u3059\u3002<\/li>\n<li>\u5177\u4f53\u7684\u306b\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u76e3\u8996\u3057\u305f\u3044\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u540d\uff08var\/log\/messages\u306a\u3069\uff09<\/strong><\/span>\u304c\u3053\u3053\u306b\u5165\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h4>\u30e1\u30c8\u30ea\u30af\u30b9\u30d5\u30a3\u30eb\u30bf\u30fc<\/h4>\n<p>\u30ed\u30b0\u3092\u7279\u5b9a\u306e\u6587\u5b57\u5217\u304b\u3089\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3067\u304d\u307e\u3059\u3002\u306a\u304a\u3001\u6b63\u898f\u8868\u73fe\u306e\u5229\u7528\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u30a2\u30e9\u30fc\u30e0\u3084SNS\u9023\u643a\u306a\u3069\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u30d5\u30a3\u30eb\u30bf\u30fc<\/h4>\n<p>\u30ed\u30b0\u306e\u30d5\u30a3\u30eb\u30bf\u30d1\u30bf\u30fc\u30f3\u306b\u5fdc\u3058\u3066\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306bKinesis Data Streams\u3084\u3001Kinesis Data Firefose\u306b\u9023\u643a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4>CloudWatch Logs Insights<\/h4>\n<p>\u30ed\u30b0\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u691c\u7d22\u3057\u3066\u5206\u6790\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ed\u30b0\u30a4\u30d9\u30f3\u30c8<\/h3>\n<ul>\n<li>1\u3064\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u3067\u3059\u3002<\/li>\n<li>\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u306b\u3088\u3063\u3066\u8a18\u9332\u3055\u308c\u305f\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30ec\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/li>\n<li>\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u6642\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u53ca\u3073\u3001\u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8(UTF-8)\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\u305d\u3082\u305d\u3082\u76e3\u8996\u3068\u306f\uff1f<\/h2>\n<h3>\u76e3\u8996\u306e\u30e1\u30ea\u30c3\u30c8<\/h3>\n<p>\u969c\u5bb3\u767a\u751f\u3092\u3059\u3050\u306b\u691c\u77e5\u3057\u3066\u5fa9\u65e7\u4f5c\u696d\u306b\u53d6\u308a\u639b\u304b\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<h3>\u76e3\u8996\u8a2d\u5b9a<\/h3>\n<ul>\n<li>\u300c\u6b63\u5e38\u306a\u72b6\u614b\u300d\u3092\u5b9a\u7fa9\u3059\u308b\u3002\uff08CPU\u4f7f\u7528\u738780%\u4ee5\u4e0a\u7b49\uff09<\/li>\n<li>\u6b63\u5e38\u3058\u3083\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u306b\u3059\u3050\u306b\u901a\u77e5\u304c\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h4>\u76e3\u8996\u8a2d\u5b9a\u306e\u30dd\u30a4\u30f3\u30c8<\/h4>\n<p>\u76e3\u8996\u9805\u76ee\u304c\u591a\u3059\u304e\u308b\u3068\u628a\u63e1\u3059\u308b\u306e\u304c\u5927\u5909\u3067\u3059\u3057\u76e3\u8996\u75b2\u308c\u3092\u3057\u307e\u3059\u3002\u90fd\u5ea6\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u76e3\u8996\u9805\u76ee\u3092\u5897\u6e1b\u3057\u3066\u6700\u9069\u306a\u76e3\u8996\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<span style=\"color: #ff0000;\"><strong>\u6700\u521d\u306fCPU\u3001\u30e1\u30e2\u30ea\u3001\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u7387\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4f7f\u7528\u7387\u3068\u3046\u306e\u57fa\u672c\u7684\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u307f\u3092\u76e3\u8996\u5bfe\u8c61\u3068\u3060\u3051\u3057\u3066\u304a\u3051\u3070\u826f\u3044<\/strong><\/span>\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>\u76e3\u8996\u8a2d\u8a08\u306e\u6ce8\u610f\u70b9<\/h3>\n<p>\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306e\u8a2d\u8a08\u3092\u59cb\u3081\u308b\u3068\u3068\u308a\u3042\u3048\u305a\u300c\u30b7\u30b9\u30c6\u30e0\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u3067\u304d\u308b\u3060\u3051\u96c6\u3081\u308b\u300d\u3068\u3044\u3046\u65b9\u5411\u3067\u8003\u3048\u3066\u3057\u307e\u3044\u304c\u3061\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4e00\u756a\u5927\u4e8b\u306a\u306e\u306f\u300c\u5229\u7528\u8005\u306e\u305f\u3081\u306b\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3092\u884c\u3046\u3053\u3068\u300d\u3067\u3059\u3002\u30ed\u30b0\u3067\u3042\u308c\u30e1\u30c8\u30ea\u30af\u30b9\u3067\u3042\u308c\u5229\u7528\u8005\u306e\u4f53\u9a13\u304c\u640d\u306a\u308f\u308c\u306a\u3044\u3088\u3046\u306a\u30a4\u30d9\u30f3\u30c8\u3092\u5ff5\u982d\u306b\u884c\u3046\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>\u4f8b\uff1aHTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u76e3\u8996\u3059\u308b\u306a\u3069\u3002<\/p>\n<h3>\u76e3\u8996\u306e\u7a2e\u985e<\/h3>\n<p>\u76e3\u8996\u306b\u306f<span style=\"color: #ff0000;\"><strong>\u300c\u6b7b\u6d3b\u76e3\u8996\u300d<\/strong><\/span>\u3068<span style=\"color: #ff0000;\"><strong>\u300c\u30e1\u30c8\u30ea\u30af\u30b9\u76e3\u8996\u300d<\/strong><\/span>\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>\u6b7b\u6d3b\u76e3\u8996<\/h4>\n<ul>\n<li>\u6b63\u5e38\u306b\u30b7\u30b9\u30c6\u30e0\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/li>\n<\/ul>\n<h4>\u30e1\u30c8\u30ea\u30af\u30b9\u76e3\u8996<\/h4>\n<ul>\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9a\u91cf\u7684\u306b\u78ba\u8a8d<\/li>\n<li>\u6307\u6a19\u3092\u6c7a\u3081\u3066\u3001\u6307\u6a19\u304c\u95be\u5024\u4ee5\u4e0a\u3001\u4ee5\u4e0b\u3068\u306a\u3063\u3066\u3044\u308b\u304b\u628a\u63e1<\/li>\n<\/ul>\n<h2>\u6628\u4eca\u306e\u76e3\u8996<\/h2>\n<p>\u6628\u4eca\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3067\u306f\u3001AWS\u306b\u3088\u3063\u3066\u7528\u610f\u3055\u308c\u305f\u5404\u7a2e\u30b5\u30fc\u30d3\u30b9\u3084\u6bd4\u8f03\u7684\u5c0f\u3055\u3044\u7c92\u5ea6\u306e\u30a2\u30d7\u30ea\u304c\u76f8\u4e92\u306b\u9023\u643a\u3057\u5408\u3046\u5206\u6563\u30b7\u30b9\u30c6\u30e0\u3068\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3002\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9023\u643a\u304c\u591a\u304f\u306a\u308b\u3068\u3001\u69cb\u9020\u304c\u8907\u96d1\u306b\u306a\u3063\u3066\u969c\u5bb3\u767a\u751f\u6642\u306b\u304a\u3051\u308b\u5f71\u97ff\u7bc4\u56f2\u8abf\u67fb\u306e\u628a\u63e1\u3084\u539f\u56e0\u306e\u7279\u5b9a\u304c\u96e3\u3057\u304f\u306a\u308b\u3002<\/p>\n<p>\u305d\u3053\u3067\u91cd\u8981\u306b\u306a\u308b\u306e\u304c\u300c\u30c8\u30ec\u30fc\u30b9\u300d\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3092\u4fef\u77b0\u3057\u3064\u3064\u3001\u5185\u90e8\u72b6\u614b\u307e\u3067\u6df1\u5800\u308a\u3067\u304d\u308b\u3088\u3046\u306a\u72b6\u614b\u3092<span style=\"color: #ff0000;\"><strong>\u300c\u30aa\u30d6\u30b6\u30fc\u30d0\u30d3\u30ea\u30c6\u30a3(\u53ef\u89b3\u6e2c\u6027\uff09\u300d<\/strong><\/span>\u3068\u3044\u3046\u3002<\/p>\n<h3>\u691c\u77e5\uff08\u30e1\u30c8\u30ea\u30af\u30b9\uff09<\/h3>\n<p>\u4f55\u304c\u8d77\u304d\u3066\u3044\u308b\u306e\u304b\u3092\u5b9a\u91cf\u7684\u306b\u628a\u63e1\u3059\u308b\u3002CloudWatch\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u5bb9\u6613\u306b\u53d6\u5f97\u3067\u304d\u308b\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u300c\u5229\u7528\u8005\u89b3\u70b9\u3067\u4f55\u304c\u5fc5\u8981\u304b\uff1f\u300d<\/strong><\/span>\u3068\u3044\u3046\u3053\u3068\u3092\u4e00\u756a\u5ff5\u982d\u306b\u8003\u3048\u308b\u3079\u304d\u3002<\/p>\n<h3>\u628a\u63e1(\u30c8\u30ec\u30fc\u30b9)<\/h3>\n<p>\u3069\u3053\u3067\u8d77\u304d\u3066\u3044\u308b\u306e\u304b\u3092\u77e5\u308b\u3002X-Ray\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u6d41\u308c\u3092\u8ffd\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u7279\u5b9a(\u30ed\u30b0)<\/h3>\n<p>\u306a\u305c\u767a\u751f\u3057\u305f\u306e\u304b\u3092\u7a81\u304d\u6b62\u3081\u308b\u3002CloudWatch Logs\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u5bb9\u6613\u306b\u84c4\u7a4d\u3067\u304d\u308b\u3002\u307e\u305f\u3001FireLens(CloudWatch Logs\u3088\u308a\u306f\u5f8c\u767a\u30b5\u30fc\u30d3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002)\u3067\u3082\u3044\u3051\u307e\u3059\u3002<\/p>\n<p>FireLens\u3067\u3042\u308c\u3070AWS\u4ee5\u5916\u306eSaas\u306b\u5bfe\u3057\u3066\u30ed\u30b0\u8ee2\u9001\u306a\u3069\u304c\u3057\u3084\u3059\u3044\u306a\u3069\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"CloudWatch\u3068\u306f\uff1f AWS\u30b5\u30fc\u30d3\u30b9\u306e\u76e3\u8996\u3084\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u95be\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u3044\u3066\u305d\u308c\u3092\u305d\u308c\u3092\u8d85\u3048\u305f\u3089Amazon SNS\u3092\u4f7f\u3063\u3066\u901a\u77e5\u3092\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 Amazon SNS\u3068\u306f\uff1f AWS\u306e\u901a [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15453"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15453"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15453\/revisions"}],"predecessor-version":[{"id":20075,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15453\/revisions\/20075"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15453"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}