Sha256: f51c62d1408b23d4a156e80c591da15c372d3785d8e37bf5eef30f7f185b1fe4
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
# fluent-plugin-mysql ## Component ### MysqlOutput Plugin to store mysql tables over SQL, to each columns per values, or to single column as json. ## Configuration ### MysqlOutput MysqlOutput needs MySQL server's host/port/database/username/password, and INSERT format as SQL, or as table name and columns. <match output.by.sql.*> type mysql host master.db.service.local # port 3306 # default database application_logs username myuser password mypass key_names status,bytes,vhost,path,rhost,agent,referer sql INSERT INTO accesslog (status,bytes,vhost,path,rhost,agent,referer) VALUES (?,?,?,?,?,?,?) flush_intervals 5s </match> <match output.by.names.*> type mysql host master.db.service.local database application_logs username myuser password mypass key_names status,bytes,vhost,path,rhost,agent,referer table accesslog # 'columns' names order must be same with 'key_names' columns status,bytes,vhost,path,rhost,agent,referer flush_intervals 5s </match> Or, insert json into single column. <match output.as.json.*> type mysql host master.db.service.local database application_logs username root table accesslog columns jsondata format json flush_intervals 5s </match> Now, out_mysql cannnot handle tag/time as output data. ## TODO * implement 'tag_mapped' * implement 'time' and 'tag' in key_names ## Copyright Copyright:: Copyright (c) 2012- TAGOMORI Satoshi (tagomoris) License:: Apache License, Version 2.0
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-mysql-0.0.2 | README.md |
fluent-plugin-mysql-0.0.1 | README.md |