Logstash和ElasticSearch术语令牌

时间:2014-02-20 11:20:10

标签: elasticsearch logstash

我是这个技术堆栈的新手,我真的不知道从哪里开始。

我有一个名为application_name的字段,我有空格的值,例如“app android”,“app ios”。什么是最简单的logstash-elasticsearch配置有两个术语,即“app android”和“app ios”而不是“app”,“android”和“ios”?

1 个答案:

答案 0 :(得分:0)

您需要创建一个索引模板(http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html),将您不想标记的字段设置为"index": "not_analyzed"

您还可以创建一个模板,默认情况下将每个字符串字段设置为not_analyzed - 例如,请参阅:https://gist.github.com/deverton/2970285