`timestamp` 字段对于 "Date Histogram" 聚合无效
`timestamp` field is invalid for use with the "Date Histogram" aggregation
由于
,Kibana 7.x 中的查看索引出现问题
Error: Saved field "value.request.timestamp" of index pattern "flight-cache-*" is invalid for use with the "Date Histogram" aggregation. Please select a new field.
文档 json 看起来像(删除了不相关的属性):
{
"value": {
"request": {
"timestamp": 1638345701217
}
}
}
索引映射看起来像(也经过简化)
{
"properties": {
"value": {
{
"request": {
"type": "nested",
"properties": {
"timestamp": {
"format": "epoch_millis",
"type": "date"
}
}
}
}
}
}
}
请帮忙。谢谢!
完整错误:
Error: Saved field "value.request.timestamp" of index pattern "flight-cache-*" is invalid for use with the "Date Histogram" aggregation. Please select a new field.
at FieldParamType.e.write.write (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:362451)
at http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:324984
at Array.forEach (<anonymous>)
at d (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:324961)
at AggConfig.write (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:313717)
at AggConfig.toDsl (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:314404)
at http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:141519
at Array.forEach (<anonymous>)
at agg_configs_AggConfigs.toDsl (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:140620)
at http://localhost:5601/46307/bundles/plugin/discover/kibana/discover.chunk.2.js:1:199214
截图:
事实证明,Kibana 不支持在嵌套 属性 下使用时间戳。
将 request.type
更改为 object
解决了问题。
由于
,Kibana 7.x 中的查看索引出现问题Error: Saved field "value.request.timestamp" of index pattern "flight-cache-*" is invalid for use with the "Date Histogram" aggregation. Please select a new field.
文档 json 看起来像(删除了不相关的属性):
{
"value": {
"request": {
"timestamp": 1638345701217
}
}
}
索引映射看起来像(也经过简化)
{
"properties": {
"value": {
{
"request": {
"type": "nested",
"properties": {
"timestamp": {
"format": "epoch_millis",
"type": "date"
}
}
}
}
}
}
}
请帮忙。谢谢!
完整错误:
Error: Saved field "value.request.timestamp" of index pattern "flight-cache-*" is invalid for use with the "Date Histogram" aggregation. Please select a new field.
at FieldParamType.e.write.write (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:362451)
at http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:324984
at Array.forEach (<anonymous>)
at d (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:324961)
at AggConfig.write (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:313717)
at AggConfig.toDsl (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:314404)
at http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:141519
at Array.forEach (<anonymous>)
at agg_configs_AggConfigs.toDsl (http://localhost:5601/46307/bundles/plugin/data/kibana/data.plugin.js:1:140620)
at http://localhost:5601/46307/bundles/plugin/discover/kibana/discover.chunk.2.js:1:199214
截图:
事实证明,Kibana 不支持在嵌套 属性 下使用时间戳。
将 request.type
更改为 object
解决了问题。