processer中有putElasticsearch和putElasticsearch5,其中putElasticsearch对应的是2.x版本,putElasticsearch5对应的是5.x版本。本机安装的Elasticsearch为5.x版本,故选用putElasticsearch5。
建立如下组件关联
putElasticsearch5的配置如下
ElasticSearch Hosts:为安装Elasticsearch5所在服务器,可以为多个,默认端口为9300
Identifier Attribute:为传过来flowfile的id 如: