英文:
Kibana Lens - Cannot cutomize timestamp on several months, weeks or years
问题
我正在在Kibana 7.17上创建一个镜头可视化。当我尝试自定义我的时间戳以对多天的数据进行聚合时,可以轻松完成。
然而,当我尝试对数据进行数周、数月或数年的聚合时,它会变成灰色并重置为1。我无法对例如3个月进行聚合以得到一个季度。
同样的问题也出现在周和年上。
是否有一些技巧可以将时间戳更改为2、3或4个月(或周或年)?
英文:
I am creating a Lens Visualization on Kibana 7.17
When I try to customize my timestamp to aggregate data on several days, I can do it easily
However, when I try to aggregate my data on several weeks, months or years, it is greyed and reset to 1. I cannot aggregate for instance on 3 months to have a quarter.
The same problem appears on weeks, and years.
Is there some trick to change timestamp to 2,3 or 4 months (or weeks or years)?
答案1
得分: 0
根据文档,Elasticsearch 不支持使用多个数量的 calendar_interval。这就是为什么 Lens 禁用了该字段。
您可以尝试使用 "quarter" 来获得一个季度的间隔,而不是 3 个月。
来自我的帖子这里的响应已复制。
英文:
According to the documentation not possible for Elasticsearch to have a calendar_interval of multiple quantities. That is why Lens is disabling the field.
Instead of 3 months you may try using quarter to get an interval of one quarter.
Response copied from my post here
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论