LoginSignup
1
0

More than 3 years have passed since last update.

Logstash では MySQL の DATE 型は使えないと思った方が良い

Posted at

Logstash v6.7.2 の filter にて以下のエラーが発生し、調査したところ、
Jdbc_streaming filter pluginで参照していた先のテーブル定義に DATE 型のカラムが含まれていると、発生することがわかりました。

Missing Converter handling for full class name=org.jruby.ext.date.RubyDate, simple name=RubyDate

Jdbc_streaming filter pluginでのSELECT時にMySQLの CONVERT()DATE 型のカラムを DATETIME 型にCONVERTして取り込むことでひとまずは回避ができます。

例)

SELECT CONVERT(hoge_date, DATETIME) AS hoge_hoge FROM hoge_table;
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0