Sha256: 8cbb6adb578333db6d5f9f20d1fb98ea64db2af339955f3425d3e6f49a8dc69d

Contents?: true

Size: 1.03 KB

Versions: 20

Compression:

Stored size: 1.03 KB

Contents

## case study

It is a guide to replicate single mysql table to treasure data.

## configuration

```
<source>
  type mysql_appender

  # Set connection settings for replicate source.
  host localhost
  username your_mysql_user
  password your_mysql_password
  database myweb

  # Set replicate query configuration.
  query SELECT id, text, updated_at from search_test;
  primary_key id # specify incremental unique key (default: id)
  interval 1m  # execute query interval (default: 1m)

  # Format output tag for each events.
  tag appender.myweb.your_td_database.your_td_table

  time_column created_at # specify TIME column.
  limit   1000 # query limit
  last_id -1   # specify primary_key start
</source>

<match appender.*.*>
  type tdlog
  endpoint your_td_endpoint
  apikey your_td_apikey

  auto_create_table
  buffer_type file
  buffer_path /var/log/td-agent/buffer/td
  flush_interval 1m
  use_ssl true
  num_threads 8

  <secondary>
    @type file
    path /var/log/td-agent/failed_records
    compress gzip
  </secondary>
</match>
```

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fluent-plugin-mysql-appender-0.5.1 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.5.0 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.9 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.8 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.7 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.6 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.5 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.4 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.3 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.2 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.1 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.4.0 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.9 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.8 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.7 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.6 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.5 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.2 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.1 example/mysql_single_table_to_treasure_data.md
fluent-plugin-mysql-appender-0.3.0 example/mysql_single_table_to_treasure_data.md