Json Elasticsearch/Kibana错误:超出远程搜索范围
我收到以下错误:Json Elasticsearch/Kibana错误:超出远程搜索范围,json,elasticsearch,kibana,unsigned-integer,Json,elasticsearch,Kibana,Unsigned Integer,我收到以下错误: WARN Can not index event (status=400): {"type":"mapper_parsing_exception","reason":"failed to parse [ftrace.inode]","caused_by":{"type":"json_parse_exception","reason":"Numeric value (9223372036856872997) out of range of long (-9223372036854
WARN Can not index event (status=400):
{"type":"mapper_parsing_exception","reason":"failed to parse
[ftrace.inode]","caused_by":{"type":"json_parse_exception","reason":"Numeric
value (9223372036856872997) out of range of long (-9223372036854775808
- 9223372036854775807)\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@253c6f54;
line: 1, column: 911]"}
实际问题是:
我有一个类型为unsigned int 64
的变量,但在Elasticsearch中找不到任何可以在JSON模板中使用的支持该类型的数据类型。目前我使用的是long
,但它无法处理,因为值大于此值
JSON模板:
"fileid": {
"type": "long"
},
打浆机代码:
FileId uint64 `json:"#FileId"
要求:
使用JSON模板,我应该能够使用ES将未签名的int 64值转储到Kibana。我只需要任何不带符号的int 64数据类型
Value of field id : 9223372036856872997 , 9223372036856873004
为了支持大整数,我认为有一个悬而未决的问题:您可以在索引之前将其转换为字符串作为一种解决方法