干得好,您快到了,只缺少文档ID。您需要
elasticsearch像这样修改输出:
elasticsearch { action => "index" hosts => ["127.0.0.1:9200"] index => "simpsons" document_type => "episode" document_id => "%{id}" <---- add this line workers => 1}之后,您将可以查询ID为10的剧集
GET http://localhost:9200/simpsons/episode/10



