I want to use logstash transfer data from mysql to elasticsearch. I use dynamic template to define IK tokenizer which is used for chinese, but some data transfer successfully, others failed with : response code: 500 ({"type"=>"null_pointer_exception", "reason"=>nil}).
Here is my logstash.conf:
and my logstash.json which define the dynamic template:
I don't know why some data transfer failed with the null_pointer_exception.