{"id":2527,"date":"2016-01-20T11:02:54","date_gmt":"2016-01-20T02:02:54","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2527"},"modified":"2016-01-20T11:02:54","modified_gmt":"2016-01-20T02:02:54","slug":"fluentdtd-agent-aapche%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%ad%e3%82%b0%e3%81%ae%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf%e3%83%aa%e3%83%b3%e3%82%b0","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2016\/01\/20\/fluentdtd-agent-aapche%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%ad%e3%82%b0%e3%81%ae%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf%e3%83%aa%e3%83%b3%e3%82%b0\/","title":{"rendered":"fluentd(td-agent) Aapche\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0"},"content":{"rendered":"<p>Apache\u30ed\u30b0\u306e\u53d6\u308a\u8fbc\u307f\u3067\u5168\u90e8\u53d6\u308a\u8fbc\u3080\u3068\u81a8\u5927\u306b\u306a\u308b\u5834\u5408\u3001Filter\u3092\u4f7f\u3046\u3068\u7d5e\u308a\u8fbc\u307f\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u7279\u5b9a\u306ehttp\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u9664\u5916\u3057\u305f\u308a\u3001\u5927\u91cf\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30af\u30ed\u30fc\u30e9\u30fc\u3092\u9664\u5916\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<p>CentOS\u7cfb\u3067\u3042\u308c\u3070\u30c7\u30d5\u30a9\u30eb\u30c8\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\/var\/log\/httpd\/access_log\u3067\u3042\u308b\u3002<\/p>\n<p>[xml]<br \/>\n# Apache log<source>type tail<br \/>\n  format apache<br \/>\n  path \/var\/log\/httpd\/blog_access_log<br \/>\n  tag apache.access<br \/>\n  pos_file \/tmp\/fluentd-apache.pos<br \/>\n<\/source><br \/>\n<filter apache.access><br \/>\n  type grep<br \/>\n  # HTTP status\u30b3\u30fc\u30c9\u3067\u9664\u5916<br \/>\n  exclude1 code (200|301|302|304)<br \/>\n  # User-Agent\u6587\u5b57\u5217\u3067\u9664\u5916<br \/>\n  exclude2 agent (Mozilla|Safari)<br \/>\n<\/filter><br \/>\n<match apache.access><br \/>\n  type file<br \/>\n  path \/var\/tmp\/apache.log<br \/>\n<\/match><br \/>\n[\/xml]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache\u30ed\u30b0\u306e\u53d6\u308a\u8fbc\u307f\u3067\u5168\u90e8\u53d6\u308a\u8fbc\u3080\u3068\u81a8\u5927\u306b\u306a\u308b\u5834\u5408\u3001Filter\u3092\u4f7f\u3046\u3068\u7d5e &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2016\/01\/20\/fluentdtd-agent-aapche%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%ad%e3%82%b0%e3%81%ae%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf%e3%83%aa%e3%83%b3%e3%82%b0\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,458],"tags":[403,437,449],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2527"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2527"}],"version-history":[{"count":4,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2527\/revisions"}],"predecessor-version":[{"id":2531,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2527\/revisions\/2531"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}