{"id":2252,"date":"2015-09-30T16:17:01","date_gmt":"2015-09-30T07:17:01","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2252"},"modified":"2015-09-30T16:24:11","modified_gmt":"2015-09-30T07:24:11","slug":"fluentd-%e3%83%87%e3%83%90%e3%83%83%e3%82%af%e7%94%a8%e5%87%ba%e5%8a%9b%e3%81%abtype-dummy%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/09\/30\/fluentd-%e3%83%87%e3%83%90%e3%83%83%e3%82%af%e7%94%a8%e5%87%ba%e5%8a%9b%e3%81%abtype-dummy%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b\/","title":{"rendered":"fluentd \u30c7\u30d0\u30c3\u30af\u7528\u51fa\u529b\u306btype dummy\u3092\u6307\u5b9a\u3059\u308b"},"content":{"rendered":"<p>fluentd(td-agent)\u3067\u306f\u901a\u5e38\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u76e3\u8996\u3059\u308b\u304c\u3001\u8a2d\u5b9a\u3092\u3044\u308d\u3044\u308d\u8a66\u3057\u305f\u3044\u3068\u304d\u306b\u90fd\u5408\u3088\u304f\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u3002<\/p>\n<p>\u305d\u3093\u306a\u6642\u306b\u4fbf\u5229\u306a\u306e\u304ctype dummy\u3067\u3042\u308b\u3002<br \/>\n\u305d\u306e\u540d\u306e\u901a\u308a\u30c0\u30df\u30fc\u306e\u6587\u5b57\u5217\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u4e00\u79d2\u3054\u3068\u306b\u51fa\u529b\u3057\u7d9a\u3051\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>\/etc\/td-agent\/td-agent.conf\u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u5165\u308c\u308b<br \/>\n\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a18\u8ff0\u306f\u524a\u9664\u3057\u3066\u3082\u3088\u3044\u3057\u3001\u6700\u4e0b\u90e8\u306b\u8ffd\u8a18\u3059\u308b\u5f62\u3067\u3082\u826f\u3044)<\/p>\n<p>[shell]<source>type dummy<br \/>\n  tag raw.dummy<br \/>\n  dummy {&#8220;message&#8221;:&#8221;your message here&#8221;}<br \/>\n<\/source><br \/>\n<match raw.dummy><br \/>\n  type stdout<br \/>\n<\/match><\/p>\n<p>#\u6587\u6cd5\u30c1\u30a7\u30c3\u30af<br \/>\n\/etc\/init.d\/td-agent configtest<br \/>\n#\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u306e\u7d50\u679c\u78ba\u8a8d<br \/>\ntail \/var\/log\/td-agent\/td-agent.log<br \/>\n#\u554f\u984c\u306a\u3051\u308c\u3070\u30ea\u30ed\u30fc\u30c9<br \/>\n\/etc\/init.d\/td-agent reload<br \/>\n[\/shell]<\/p>\n<p>\u3053\u308c\u3067\u5165\u529b\u3055\u308c\u305f\u6587\u5b57\u5217\u304c\/var\/log\/td-agent\/td-agent.log\u306b\u51fa\u529b\u3055\u308c\u308b\u3002<br \/>\n\u6b63\u898f\u8868\u73fe\u3067\u4f55\u304b\u52a0\u5de5\u3057\u305f\u3044\u306a\u3069\u306e\u5834\u5408\u306f\u3001\u76ee\u7684\u306e\u6587\u5b57\u5217\u3092dummy\u306b\u6307\u5b9a\u3057\u3066\u304a\u304d\u3001\/var\/log\/td-agent\/td-agent.log\u3067\u76ee\u7684\u306e\u7d50\u679c\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304f\u3068\u3088\u3044\u3060\u308d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>fluentd(td-agent)\u3067\u306f\u901a\u5e38\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u76e3\u8996\u3059\u308b\u304c\u3001\u8a2d\u5b9a\u3092\u3044\u308d\u3044 &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/09\/30\/fluentd-%e3%83%87%e3%83%90%e3%83%83%e3%82%af%e7%94%a8%e5%87%ba%e5%8a%9b%e3%81%abtype-dummy%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b\/\">\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":[1],"tags":[437,449],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2252"}],"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=2252"}],"version-history":[{"count":5,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2252\/revisions"}],"predecessor-version":[{"id":2257,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2252\/revisions\/2257"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}