Output data to elasticsearch with null_pointer_exception

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:
image
and my logstash.json which define the dynamic template:

I don't know why some data transfer failed with the null_pointer_exception.

If logstash gets a 500 error from elasticsearch I would expect there to be a more informative error message in the elasticsearch logs.

Thanks a lot,that's enlightening.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.