#contents -fluentdのバッチデータロード版 *インストール [#v01a7ae5] jarファイルに実行権限をつけるのみ。公式サイトの通りにやると楽だが、curlがエラーとなってしまったので、手動でダウンロードした *Elasticsearchへの連携 [#h7654bca] http://qiita.com/handa/items/6ba0bc0678b0be95a1be *設定ファイル [#ucac0ae4] **fluentdのApacheログをS3にためて、それをElasticSearchに流す設定 [#l84feb6b] in: type: s3 bucket: バケット名 path_prefix: endpoint: s3-ap-northeast-1.amazonaws.com access_key_id: secret_access_key: decoders: - {type: gzip} parser: type: json root: $.Records schema: - {name: host, type: string} - {name: user, type: string} - {name: method, type: string} - {name: path, type: string} - {name: code, type: integer} - {name: size, type: integer} - {name: referer, type: string} - {name: agent, type: string} out: type: elasticsearch cluster_name: nodes: - {host: "localhost", port: 9300} index: logstash-2016.06.04 index_type: apache **実行 [#g0ff0d95] embulk preview config.yml embulk run config.yml JSONのパースでエラー!guessコマンドを利用しても同様。クソですか? *設定ファイルに変数を使う [#c47ccb2f] liquidという拡張子にすると環境変数を展開してくれる。 #counter