Elasticksearch participle, causing kibana URLs to appear to be problematic

Source: Internet
Author: User
Tags kibana logstash

In the Kibana display page, we click on the left column of table and find that the data in Elasticsearch is the correct data in the display, such as: Agent Www.baidu.com/test, the interface will be displayed correctly as Www.baidu.com /test, but if we show this field in term,         will be divided into www.baidu.com and test two groups, by looking at Curl did not find any problems, and finally found the reason for elasticsearch to separate the results of Kibana, so Kibana will be displayed separately. Through research, our data source for Logstash automatically collected, index is automatically generated, we can not go to modify the index mapping set it to no word, so we can only start from its source, when it was created automatically set to non-participle, then we need to configure the template. The code is as follows:
Curl-xput http://localhost:9200/_template/template_1-d '{"Template":"logstash*","Order":0,"Settings": {"Number_of_shards":5},"Mappings": {"Fluentd": {"Properties": {"Request_dir":{"type":"string","Index":"not_analyzed"},"http_user_agent": {"type":"string","Index":"not_analyzed"} }}} '

One of the most important is the setting in mappings, the first level according to the data source regular decomposition, "index": "not_analyzed" for non-participle, easy to search

Elasticksearch participle, causing kibana URLs to appear to be problematic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.