티스토리 뷰

Elasticsearch

fielddata를 true로 변경

pu928 2017. 1. 23. 15:34
반응형

→ metricbeat의 template을 kibana에 적용 시 dashboard에서 에러발생


Visualize: Fielddata is disabled on text fields by default. Set fielddata=true on [system.process.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory.



→ fielddata를 true로 설정(모든 index 및 모든 type에 대해 설정)

OR


→ 설정 할 때 아래와 같이 오류 발생 가능(다른 유형으로 사용된다고 옵션을 붙여서 설정하라는 도움말...)

{

  "error": {

    "root_cause": [

      {

        "type": "illegal_argument_exception",

        "reason": "Mapper for [system.process.name] conflicts with existing mapping in other types:\n[mapper [system.process.name] is used by multiple types. Set update_all_types to true to update [fielddata] across all types.]"

      }

    ],

    "type": "illegal_argument_exception",

    "reason": "Mapper for [system.process.name] conflicts with existing mapping in other types:\n[mapper [system.process.name] is used by multiple types. Set update_all_types to true to update [fielddata] across all types.]"

  },

  "status": 400

}


→ update_all_types옵션을 붙여 다시 요청



→ 끝.








반응형

'Elasticsearch' 카테고리의 다른 글

_status가 삭제됨  (0) 2017.01.24
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함