{"id":55169,"date":"2025-02-20T18:00:00","date_gmt":"2025-02-21T02:00:00","guid":{"rendered":"https:\/\/www.sumologic.com\/blog\/apache%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%ad%e3%82%b0%e3%82%92%e7%90%86%e8%a7%a3%e3%81%99%e3%82%8b%ef%bc%9a%e8%a1%a8%e7%a4%ba%e3%80%81%e6%a4%9c%e7%b4%a2%e3%80%81%e5%88%86%e6%9e%90"},"modified":"2025-10-20T14:10:45","modified_gmt":"2025-10-20T22:10:45","slug":"apache-access-log","status":"publish","type":"blog","link":"https:\/\/www.sumologic.com\/ja\/blog\/apache-access-log","title":{"rendered":"Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u7406\u89e3\u3059\u308b\uff1a\u8868\u793a\u3001\u691c\u7d22\u3001\u5206\u6790\u65b9\u6cd5"},"content":{"rendered":"\n<section class=\"e-stn e-stn-0d652506f82b000a392973813b918ee25d5b4211 e-stn--glossary-inner-content e-stn--table-of-content\"><div class=\"container\">\n<div class=\"wp-block-b3rg-row e-row row\">\n<div class=\"wp-block-b3rg-column e-col e-col-1f7b3997080fc292474d26ff00c905d99d3520fa e-col--content-wrapper  col-sm-12 col-lg-12 col-xl-12\">\n<div class=\"e-div e-div-a1b32f66e1749758df41d5aea14f647cd10e362c e-div--card-btn-link\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"400\" src=\"https:\/\/www.sumologic.com\/wp-content\/uploads\/header-Apache-logs_blog_700x200.jpg\" alt=\"\" class=\"wp-image-13448\" title=\"\"><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/www.sumologic.com\/glossary\/log-file\" data-type=\"glossary\" data-id=\"11025\">\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb<\/a>\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306e\u554f\u984c\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u969b\u3001\u958b\u767a\u8005\u3084\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u6b20\u304b\u305b\u306a\u3044\u30c4\u30fc\u30eb\u3067\u3059\u3002\u307e\u305f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u4e0d\u5177\u5408\u3092\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u969b\u306e\u4e3b\u8981\u306a\u60c5\u5831\u6e90\u3068\u306a\u308b\u3053\u3068\u3082\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30ed\u30b0\u306e\u4e2d\u3067\u3082\u3001<a href=\"https:\/\/www.sumologic.com\/glossary\/apache\" data-type=\"glossary\" data-id=\"1327\">Apache HTTP\u30b5\u30fc\u30d0\u30fc<\/a>\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d0\u30c3\u30b0\u3084\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306b\u95a2\u3059\u308b\u5206\u6790\u60c5\u5831\u3092\u5f97\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u5091\u51fa\u3057\u305f\u5b58\u5728\u3067\u3059\u3002<\/p>\n\n\n\n<p>Apache\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u8a73\u7d30\u3001\u8a18\u9332\u5185\u5bb9\u3001\u30ed\u30b0\u306e\u5834\u6240\u3001\u30ed\u30b0\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u306e\u89e3\u91c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002\u30ed\u30b0\u30c7\u30fc\u30bf\u306e\u771f\u306e\u529b\u306f\u5206\u6790\u3092\u901a\u3058\u3066\u5f97\u3089\u308c\u308b\u60c5\u5831\u306b\u3042\u308b\u305f\u3081\u3001\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001<a href=\"https:\/\/www.sumologic.com\/ja\">Sumo Logic<\/a>\u306e\u3088\u3046\u306aSaaS\u30ed\u30b0\u5206\u6790\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30c7\u30fc\u30bf\u304b\u3089\u5b9f\u7528\u7684\u306a\u5206\u6790\u60c5\u5831\u3092\u5f97\u308b\u30e1\u30ea\u30c3\u30c8\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-apache-access-logs-and-their-role-in-web-server-monitoring\">Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3068\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u76e3\u8996\u306b\u304a\u3051\u308b\u305d\u306e\u5f79\u5272\u3068\u306f<\/h2>\n\n\n\n<p>\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001Apache\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306fApache\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u304c\u751f\u6210\u3059\u308b\u8907\u6570\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u3064\u3067\u3059\u3002\u3053\u306e\u7279\u5b9a\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001Apache\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30c7\u30fc\u30bf\u304c\u8a18\u9332\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u8ab0\u304b\u306b\u30b5\u30a4\u30c8\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u305d\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u95a2\u3059\u308b\u8a73\u7d30\u304c\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u60c5\u5831\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3055\u307e\u3056\u307e\u306a\u72b6\u6cc1\u3067\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7279\u5b9a\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3059\u308b\u5404\u30e6\u30fc\u30b6\u30fc\u306b\u5171\u901a\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30ea\u30f3\u30af\u304c\u6307\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u304c\u3059\u3067\u306b\u5b58\u5728\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b5\u30a4\u30c8\u4e0a\u306e\u7279\u5b9a\u306e\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u306b\u901a\u5e38\u3088\u308a\u3082\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u3001\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u306b\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u306e\u305f\u3081\u306b\u6700\u9069\u5316\u304c\u5fc5\u8981\u306aSQL\u30af\u30a8\u30ea\u304c\u5f37\u8abf\u8868\u793a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b5\u30a4\u30c8\u306e\u7279\u5b9a\u306e\u30da\u30fc\u30b8\u304c\u975e\u5e38\u306b\u4eba\u6c17\u304c\u3042\u308b\u5834\u5408\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u304b\u3089\u30c7\u30fc\u30bf\u3092\u96c6\u7d04\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u304f\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u308b\u30ea\u30bd\u30fc\u30b9\u304c\u660e\u3089\u304b\u306b\u306a\u308a\u3001\u4f01\u696d\u304c\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6700\u9069\u5316\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"where-can-i-find-apache-access-logs\">Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306f\u3069\u3053\u306b\u3042\u308a\u307e\u3059\u304b\uff1f<\/h2>\n\n\n\n<p>Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u5834\u6240\u306fApache HTTP\u30b5\u30fc\u30d0\u30fc\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002\u307b\u3068\u3093\u3069\u306eApache\u30b5\u30fc\u30d0\u30fc\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306fLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306fLinux\u30de\u30b7\u30f3\u4e0a\u306eApache\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u5834\u6240\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070Ubuntu Linux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30ec\u30b3\u30fc\u30c9\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308b\u5834\u6240\u306f\u3053\u3061\u3089\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/var\/log\/apache2\/access.log<\/pre>\n\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u5834\u6240\u306f\u3001\u4ed6\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u591a\u5c11\u7570\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u306f\u305d\u308c\u307b\u3069\u8a73\u3057\u304f\u8abf\u3079\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6700\u7d42\u7684\u306b\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u5834\u6240\u3068\u5f62\u5f0f\uff08\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u3057\u307e\u3059\uff09\u306f\u3001<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_log_config.html#customlog\" target=\"_blank\" rel=\"noreferrer noopener\">CustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/a>\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001Apache HTTP\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u5185\u3067\u8868\u793a\u304a\u3088\u3073\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"interpreting-apache-access-logs\">Apache\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u89e3\u91c8<\/h2>\n\n\n\n<p>Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u304c\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3001\u3069\u3053\u306b\u3042\u308b\u304b\u304c\u308f\u304b\u3063\u305f\u3068\u3053\u308d\u3067\u3001 \u958b\u767a\u30c1\u30fc\u30e0\u3084\u305d\u306e\u4ed6\u306eIT\u62c5\u5f53\u8005\u304c\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30a8\u30f3\u30c8\u30ea\u3092\u89e3\u91c8\u3059\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u3092\u7406\u89e3\u3059\u308b\u306b\u306f\u3001Apache\u30ed\u30b0\u5f62\u5f0f\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u5f62\u5f0f\u306f\u3001CustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3067\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b2\u7a2e\u985e\u306e\u30ed\u30b0\u5f62\u5f0f\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"common-log-format\">Common Log Format<\/h3>\n\n\n\n<p>Common Log Format\uff08CLF\u3001\u5171\u901a\u30ed\u30b0\u5f62\u5f0f\uff09\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u304c\u30b5\u30fc\u30d0\u30fc\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u6a19\u6e96\u5316\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u3067\u3059\u3002Apache HTTP\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001Common Log Format\u3092\u4f7f\u7528\u3057\u3066\u3001\u958b\u767a\u8005\u3084\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u8aad\u307f\u3084\u3059\u3044\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u751f\u6210\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001CLF\u5f62\u5f0f\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306f\u8907\u6570\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u6a19\u6e96\u5f62\u5f0f\u3067\u3042\u308b\u305f\u3081\u3001\u591a\u304f\u306e\u30ed\u30b0\u5206\u6790\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u7c21\u5358\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>CLF\u3067\u66f8\u304b\u308c\u305f\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u30b5\u30f3\u30d7\u30eb\u30ec\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">127.0.0.1 - Scott [10\/Dec\/2019:13:55:36 -0700] \"GET \/server-status HTTP\/1.1\" 200 2326<\/pre>\n\n\n\n<p>\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u4ee5\u4e0b\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>127.0.0.1<\/strong>\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3063\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9<\/li>\n\n\n\n<li><strong>\u30cf\u30a4\u30d5\u30f3<\/strong>\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eID\u3002 \u3053\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u30cf\u30a4\u30d5\u30f3\u3067\u8fd4\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u304f\u3001<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/logs.html#accesslog\" target=\"_blank\" rel=\"noreferrer noopener\">Apache\u306eHTTP\u30b5\u30fc\u30d0\u30fc\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u306f\u3001\u5236\u5fa1\u3055\u308c\u305f\u5185\u90e8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5834\u5408\u3092\u9664\u304d\u3001\u3053\u306e\u7279\u5b9a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5f53\u3066\u306b\u3057\u306a\u3044\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>Scott<\/strong>\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u9001\u4fe1\u8005\u306e\u30e6\u30fc\u30b6\u30fcID<\/li>\n\n\n\n<li><strong>[10\/Dec\/2019:13:55:36 -0700]<\/strong>\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u65e5\u6642<\/li>\n\n\n\n<li><strong>\u300cGET \/server-status HTTP\/1.1\u300d<\/strong>\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7a2e\u985e\u3068\u8981\u6c42\u3055\u308c\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9<\/li>\n\n\n\n<li><strong>200<\/strong>\uff1aHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9.<\/li>\n\n\n\n<li><strong>2326<\/strong>\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u8fd4\u3055\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b5\u30a4\u30ba\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"combined-log-format\">Combined Log Format<\/h3>\n\n\n\n<p>Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3067\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u3082\u3046\u4e00\u3064\u306e\u5f62\u5f0f\u306fCombined Log Format\u3067\u3059\u3002\u3053\u306e\u5f62\u5f0f\u306fCommon Log Format\u306b\u4f3c\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u30ed\u30b0\u5206\u6790\u3084\u30c7\u30d0\u30c3\u30b0\u64cd\u4f5c\u306e\u305f\u3081\u306e\u3088\u308a\u591a\u304f\u306e\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u8ffd\u52a0\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002Combined Log Format\u3067\u8a18\u9332\u3055\u308c\u308b\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u8a18\u9332\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">127.0.0.1 - Scott [10\/Dec\/2019:13:55:36 -0700] \"GET \/server-status HTTP\/1.1\" 200 2326 \"http:\/\/localhost\/\" \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36\"<\/pre>\n\n\n\n<p>\u3054\u89a7\u306e\u3068\u304a\u308a\u3001\u6700\u521d\u306e7\u3064\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306fCommon Log Format\u306e\u3082\u306e\u3068\u540c\u3058\u3067\u3059\u3002\u6b8b\u308a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u4ee5\u4e0b2\u3064\u306e\u8ffd\u52a0\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u300c<\/strong><strong>http:\/\/localhost\/<\/strong><strong>\u300d<\/strong>\uff1a\u3053\u308c\u306fHTTP\u30ea\u30d5\u30a1\u30e9\u30fc\u3067\u3001\u30bd\u30fc\u30b9URL\u3092\u793a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u300cMozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36\u300d<\/strong>\uff1a\u3053\u308c\u306f\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u306e\u8a73\u7d30\u3092\u793a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"the-customlog-directive\">CustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/h2>\n\n\n\n<p>\u5148\u307b\u3069\u3001Apache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306f Apache\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5185\u306eCustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u8a2d\u5b9a\u3055\u308c\u308b\u3068\u3054\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u3001CustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u67d4\u8edf\u6027\u3092\u3054\u89a7\u3044\u305f\u3060\u304f\u305f\u3081\u306b\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u8a2d\u5b9a\u4f8b\u3092\u53d6\u308a\u4e0a\u3052\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %O \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" combined\n\nCustomLog \/var\/log\/apache2\/access.log combined \n<\/pre>\n\n\n\n<p>\u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001LogFormat\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u7528\u3044\u3066\u7d71\u5408\u30ed\u30b0\u5f62\u5f0f\u3092\u5b9a\u7fa9\u3057\u305f\u5f8c\u3001CustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u5834\u6240\u3068\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3054\u89a7\u306e\u3088\u3046\u306b\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u5834\u6240\u3084\u5f62\u5f0f\u3092\u5909\u66f4\u3059\u308b\u306e\u306f\u7c21\u5358\u306a\u3053\u3068\u3067\u3059\u3002\u3055\u3089\u306b\u3001CustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306b\u306f\u4ed6\u306b\u3082\u6a5f\u80fd\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"multiple-access-logs\">\u8907\u6570\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0<\/h3>\n\n\n\n<p>Apache HTTP \u30b5\u30fc\u30d0\u30fc\u306b\u8907\u6570\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306bCustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %O \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" combined\nLogFormat \"%{User-agent}i\" agent\nCustomLog \/var\/log\/apache2\/access.log combined\nCustomLog \/var\/log\/apache2\/agent_access.log agent<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conditional-logs\">\u6761\u4ef6\u4ed8\u304d\u30ed\u30b0<\/h3>\n\n\n\n<p>\u3055\u3089\u306b\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306f\u6761\u4ef6\u4ed8\u304d\u3067\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30ec\u30b3\u30fc\u30c9\u3092\u9664\u5916\u3059\u308b\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u7406\u7531\u3067\u5f79\u7acb\u3061\u307e\u3059\u3002\u901a\u5e38\u3001\u3053\u308c\u306f\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u3001\u300cenv\u300d\u53e5\u3067\u53c2\u7167\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_log_config.html#customlog\" target=\"_blank\" rel=\"noreferrer noopener\">CustomLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/a>\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"log-rotation-and-piped-logs\">\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u30d1\u30a4\u30d7\u30ed\u30b0.<\/h3>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u30ed\u30b0\u306f\u5927\u91cf\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u6d88\u8cbb\u3059\u308b\u305f\u3081\u3001\u30a2\u30fc\u30ab\u30a4\u30d6\u3055\u308c\u305f\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u7ba1\u7406\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u6bd4\u8f03\u7684\u8ca0\u8377\u306e\u9ad8\u3044Apache\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\uff08\u7279\u306b\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\uff09\u304c\u6025\u5897\u3057\u3084\u3059\u3044\u305f\u3081\u3001\u53e4\u3044\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u5b9a\u671f\u7684\u306b\u79fb\u52d5\u307e\u305f\u306f\u524a\u9664\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u78ba\u7acb\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u5e78\u3044\u3001Apache HTTP\u30b5\u30fc\u30d0\u30fc\u306f\u3001<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/logs.html#rotation\" target=\"_blank\" rel=\"noreferrer noopener\">\u30b0\u30ec\u30fc\u30b9\u30d5\u30eb\u30ea\u30b9\u30bf\u30fc\u30c8<\/a>\u3068<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/logs.html#piped\" target=\"_blank\" rel=\"noreferrer noopener\">\u30d1\u30a4\u30d7\u30ed\u30b0\u30d7\u30ed\u30bb\u30b9<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3053\u308c\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b0\u30ec\u30fc\u30b9\u30d5\u30eb\u30ea\u30b9\u30bf\u30fc\u30c8\u306b\u3088\u308a\u3001Apache\u30b5\u30fc\u30d0\u30fc\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u63a5\u7d9a\u3092\u5931\u3046\u3053\u3068\u306a\u304f\u65b0\u3057\u3044\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u518d\u8d77\u52d5\u306b\u3088\u308a\u3001Apache\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4e2d\u65ad\u306a\u3057\u306b\u65b0\u3057\u3044\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u53e4\u3044\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u5727\u7e2e\u307e\u305f\u306f\u524a\u9664\u3057\u3066\u30b9\u30da\u30fc\u30b9\u3092\u7bc0\u7d04\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u3001\u30d1\u30a4\u30d7\u30ed\u30b0\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u306a\u304f\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001Apache HTTP\u30b5\u30fc\u30d0\u30fc\u306b\u306frotatelogs\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u306f\u3001\u5358\u306b\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u306e\u3067\u306f\u306a\u304f\u3001\u30d1\u30a4\u30d7\u3092\u4ecb\u3057\u3066\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002rotatelogs\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306f\u3001\u6642\u9593\u3084\u30b5\u30a4\u30ba\u306b\u57fa\u3065\u3044\u3066\u6761\u4ef6\u4ed8\u304d\u3067\u30ed\u30b0\u3092\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"analyzing-apache-access-logs-with-sumo-logic\">Sumo Logic\u306b\u3088\u308bApache\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u5206\u6790.<\/h2>\n\n\n\n<p>\u5927\u91cf\u306e\u30ed\u30b0\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3059\u308b\u3053\u3068\u306f\u3001\u30c7\u30fc\u30bf\u3092\u52b9\u679c\u7684\u306b\u7ba1\u7406\u30fb\u5206\u6790\u3067\u304d\u308b\u5834\u5408\u306b\u306e\u307f\u6709\u52b9\u3067\u3059\u3002\u3053\u308c\u304c\u9069\u5207\u306b\u884c\u308f\u308c\u308c\u3070\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u306b\u6d3b\u7528\u3067\u304d\u308b\u8cb4\u91cd\u306a\u5206\u6790\u60c5\u5831\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.sumologic.com\/app-catalog\/apache\" data-type=\"integration\" data-id=\"3428\">Sumo Logic\u3068\u306e\u7d71\u5408\u306b\u3088\u308a\u3001Apache\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u53ce\u96c6\u304c\u7c21\u7d20\u5316\u3055\u308c<\/a>\u3001Apache\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u4f5c\u696d\u6642\u306b\u6709\u76ca\u306a\u8996\u899a\u5316\u3092\u7c21\u5358\u306b\u751f\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f7f\u3044\u59cb\u3081\u308b\u306e\u306f\u7c21\u5358\u3067\u3059\u3002Sumo Logic\u306e\u30b3\u30ec\u30af\u30bf\u30fc\u3068Apache\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u7528\u306e\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30bd\u30fc\u30b9\u3092\u8a2d\u5b9a\u3059\u308c\u3070\u3001\u6570\u5206\u3067\u7a3c\u50cd\u3092\u958b\u59cb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ed\u30b0\u7ba1\u7406\u3068\u30c7\u30fc\u30bf\u5206\u6790\u30d7\u30ed\u30bb\u30b9\u306e\u5f37\u5316\u3092\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u00a0<a href=\"https:\/\/www.sumologic.com\/sign-up\/\">\u4eca\u3059\u305030\u65e5\u9593\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u3067Sumo Logic\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":331,"featured_media":45499,"template":"","meta":{"_acf_changed":false,"show_custom_date":false,"custom_date":"","featured":false,"featured_image":0,"learn_more_label":"","image_alt_text":"","learn_more_type":"","show_popup":false,"learn_more_link_file":0,"event_date":false,"event_start_date":"","event_end_date":"","place_holder_image_url":"","post_reading_time":"< 1","notification_enabled":false,"notification_text":"","notification_logo":"","notification_expiration_time":0,"is_enable_transparent_header":false,"selected_taxonomy_terms":{"blog-category":[326],"blog-tag":[],"translation_priority":[]},"selected_primary_terms":[],"learn_more_link":[],"featured_page_list":[],"notification_enabled_post_list":[],"_gspb_post_css":"","_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"57841,62284,62286","_relevanssi_noindex_reason":"","inline_featured_image":false,"footnotes":""},"blog-category":[326],"blog-tag":[],"class_list":["post-55169","blog","type-blog","status-publish","has-post-thumbnail","hentry","blog-category-devops-it-operations"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/blog\/55169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/users\/331"}],"version-history":[{"count":1,"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/blog\/55169\/revisions"}],"predecessor-version":[{"id":55171,"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/blog\/55169\/revisions\/55171"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/media\/45499"}],"wp:attachment":[{"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/media?parent=55169"}],"wp:term":[{"taxonomy":"blog-category","embeddable":true,"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/blog-category?post=55169"},{"taxonomy":"blog-tag","embeddable":true,"href":"https:\/\/www.sumologic.com\/ja\/wp-json\/wp\/v2\/blog-tag?post=55169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}