Skip to content

ElasticSearch Sender

Sun Jianbo edited this page Jun 27, 2017 · 3 revisions

Elasticsearch Sender 是将解析后的结构化数据发送到Elasticsearch的发送器

典型配置

{
        "name":"es_sender",
        "sender_type":"elasticsearch",
        "elastic_host":"localhost:9200",
        "elastic_index":"test",
        "elastic_type":"testType",
        "elastic_keys":"oldKey newKey,oldKey2 newKey2"
}
  1. elasitc_host elasticsearch 服务地址, 多个地址使用,分隔
  2. elastic_index elasticsearch 的索引名
  3. elastic_type elasticsearch 索引下的type,默认为logkit
  4. elastic_keys key 名字.用","逗号分隔,分隔后每一个字符串中间有空格,则认为是起了别名,如"name alias,name2"这样
Clone this wiki locally