2016-12-08 1 views
0

ELK를 설정하여 PaloAlto 방화벽과 작동하도록 설정하고 있지만 맵핑에 문제가 있습니다. 나는 다음과 같은 코드를 가지고 : 나는 당신이 숫자 필드와 같은 값의 IT 인덱스 있도록 지정하는 true로 PARAM의 lat_lon를 넣을 수 있습니다 https://www.elastic.co/guide/en/elasticsearch/reference/2.1/lat-lon.html 공식 문서에서 본 것처럼Elasticsearch 매핑 geopoint unsuborted 매개 변수

"mappings":{ 
    "_default_":{ 
    "_all":{ 
     "enabled":true 
    }, 
    "dynamic_templates":[ 
     { 
      "message_field":{ 
       "match":"message", 
       "match_mapping_type":"string", 
       "mapping":{ 
       "type":"string", 
       "index":"analyzed", 
       "omit_norms":true 
       } 
      } 
     }, 
     { 
      "string_fields":{ 
       "match":"*", 
       "match_mapping_type":"string", 
       "mapping":{ 
       "type":"string", 
       "index":"analyzed", 
       "omit_norms":true, 
       "fields":{ 
        "raw":{ 
         "type":"string", 
         "index":"not_analyzed", 
         "ignore_above":256 
        } 
       } 
       } 
      } 
     } 
    ], 
    "properties":{ 
     "@version":{ 
      "type":"string", 
      "index":"not_analyzed" 
     }, 
     "geoip":{ 
      "type":"object", 
      "dynamic":true, 
      "path":"full", 
      "properties":{ 
       "location":{ 
       "type":"geo_point", 
       "lat_lon":true, 
       "geohash":true 
       } 
      } 
     }, 

.

하지만 그 대신 내가이 오류 받고 있어요 : 내가 잘못

{ 
    "error" : { 
    "root_cause" : [ 
     { 
     "type" : "mapper_parsing_exception", 
     "reason" : "Mapping definition for [location] has unsupported parameters: [geohash : true] [lat_lon : true]" 
     } 
    ], 
    "type" : "mapper_parsing_exception", 
    "reason" : "Failed to parse mapping [_default_]: Mapping definition for [location] has unsupported parameters: [geohash : true] [lat_lon : true]", 
    "caused_by" : { 
     "type" : "mapper_parsing_exception", 
     "reason" : "Mapping definition for [location] has unsupported parameters: [geohash : true] [lat_lon : true]" 
    } 
    }, 
    "status" : 400 
} 

을하고있어 무엇을?

답변

0

lat_lon 및 geohash 속성을 제거해보십시오. 현재 elasticsearch 버전 (5.2)에서는 이러한 속성이 지원되지 않습니다.

다음은 트릭을해야 다음

"geoip":{ 
     "dynamic":true, 
     "properties":{ 
      "location":{ 
      "type":"geo_point" 
      } 
     } 
    } 

심판 : https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html

(당신이 다음 내 대답을 무시 자유롭게 제안하여 문서 링크로 2.1을 실행하는 경우)