Skip to content

Instantly share code, notes, and snippets.

@pochi
Created November 25, 2014 03:27
Show Gist options
  • Save pochi/8d374c0f10b8dc795b51 to your computer and use it in GitHub Desktop.
Save pochi/8d374c0f10b8dc795b51 to your computer and use it in GitHub Desktop.
fluentd sample

もらった文字列に処理をしたくないときにどう記述するかわからなかったので調べた。 以下のようにformatをnoneに設定するといい。

<source>
  type tail
  path /opt/local/repos/fulltextsearch/sample_blog_app/log/info.log
  pos_file /opt/local/repos/fulltextsearch/sample_blog_app/log/info_pos.log
  tag portal
  format none
</source>

<match *.**>
  type kafka
  brokers localhost:9092
  default_topic test
  output_data_type json
  max_send_retries 3
  required_acks 0
  ack_timeout_ms 1500
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment