{"id":7147,"date":"2012-07-11T10:12:53","date_gmt":"2012-07-11T01:12:53","guid":{"rendered":"http:\/\/fukata.org\/?p=7147"},"modified":"2017-08-11T23:03:31","modified_gmt":"2017-08-11T23:03:31","slug":"treasure-data","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/7147\/","title":{"rendered":"500GB\u307e\u3067\u7121\u6599\u3067\u4f7f\u3048\u308bTreasure Data\u3092td-agent\u304b\u3089\u5229\u7528\u3059\u308b\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u6307\u5b9a\u65b9\u6cd5"},"content":{"rendered":"

\u6700\u8fd1\u3001\u5f53\u30d6\u30ed\u30b0\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u683c\u7d0d\u3059\u308b\u306e\u306btd-agent -> mongodb\u3068\u3044\u3046\u306e\u3092\u5148\u65e5\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u73fe\u5728\u306fmongodb\u306b\u5165\u308c\u3066\u3044\u308b\u3060\u3051\u306a\u3093\u3067\u3059\u304c\u3001td-agent\u306e\u958b\u767a\u3092\u884c\u306a\u3063\u3066\u3044\u308bTreasure Data\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30ed\u30b0\u306e\u84c4\u7a4d\u3001\u89e3\u6790\u3092\u884c\u3046\u305f\u3081\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304c\u3068\u3066\u3082\u7c21\u5358\u306b\u5229\u7528\u3067\u304d\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u305f\u611f\u60f3\u3068\u3057\u3066\u306f\u3001td-agent\u306e\u8a2d\u5b9a\u3055\u3048\u77e5\u3063\u3066\u3044\u308c\u3070\u4f1a\u54e1\u767b\u9332\u304b\u30895\u5206\u304f\u3089\u3044\u3067\u5229\u7528\u958b\u59cb\u3067\u304d\u308b\u624b\u8efd\u3055\u3067\u3057\u305f\u3002<\/p>\n

<\/p>\n

\u5c0e\u5165\u304b\u3089\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306fTreasure Data\u306e\u30b5\u30a4\u30c8\u306b\u30af\u30a4\u30c3\u30af\u30b9\u30bf\u30fc\u30c8\u30ac\u30a4\u30c9\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

Quickstart Guide | Treasure Data<\/a><\/p>\n

\u30af\u30a4\u30c3\u30af\u30b9\u30bf\u30fc\u30c8\u30ac\u30a4\u30c9\u306b\u5f93\u3063\u3066\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u305f\u306e\u3067\u3001\u3044\u3056td-agent\u304b\u3089\u4f7f\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3044\u3001td-agent\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u63a2\u3057\u3066\u3044\u308b\u3068\u3069\u308c\u3082\u30c6\u30fc\u30d6\u30eb\u3092\u81ea\u52d5\u4f5c\u6210\u3059\u308b\u8a2d\u5b9a\u306e\u3082\u306e\u304c\u591a\u304f\u3001\u660e\u793a\u7684\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u306a\u304b\u306a\u304b\u898b\u3064\u304b\u3089\u305a\u3001\u7d50\u5c40treasure-data\/fluent-plugin-td<\/a>\u306e\u30bd\u30fc\u30b9\u3092\u8aad\u3093\u3067\u898b\u3064\u3051\u307e\u3057\u305f\u3002<\/p>\n

\u7d50\u679c\u3001\u81ea\u524d\u3067\u4f5c\u6210\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u306bapache\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u683c\u7d0d\u3059\u308b\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n

\r\n<source>\r\n  type tail\r\n  path \/var\/log\/apache\/fukata.org\/access.log\r\n  format apache\r\n  tag fukata_org.access_logs\r\n  pos_file \/var\/log\/td-agent\/fukata_org.apache_pos\r\n<\/source>\r\n\r\n<match fukata_org.apache_logs>\r\n  type tdlog\r\n  apikey [apikey]                # \u767a\u884c\u3057\u305fapikey\r\n\r\n  auto_create_table false        # \u660e\u793a\u7684\u306bfalse\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u30c7\u30d5\u30a9\u30eb\u30c8 true\u306b\u306a\u308b\r\n  database          fukata       # \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\r\n  table             access_logs  # \u30c6\u30fc\u30d6\u30eb\u540d\r\n  flush_interval    300s\r\n  use_ssl           true\r\n\r\n  buffer_type file\r\n  buffer_path \/var\/log\/td-agent\/buffer\/td\r\n<\/match>\r\n<\/pre>\n

\u660e\u793a\u7684\u306b\u30c6\u30fc\u30d6\u30eb\u540d\u3092\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u30bf\u30b0\u306e*.[DATABASE].[TABLE]<\/strong>\u304c\u5229\u7528\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6700\u8fd1\u3001\u5f53\u30d6\u30ed\u30b0\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u683c\u7d0d\u3059\u308b\u306e\u306btd-agent -> mongodb\u3068\u3044\u3046\u306e\u3092\u5148\u65e5\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u73fe\u5728\u306fmongodb\u306b\u5165\u308c\u3066\u3044\u308b\u3060\u3051\u306a\u3093\u3067\u3059\u304c\u3001td-agent\u306e\u958b\u767a\u3092\u884c\u306a\u3063\u3066\u3044\u308bTre … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[981,980],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/7147"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=7147"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/7147\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=7147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=7147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=7147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}