Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个索引,其中一个字段(A)在两者中都很常见
现在我想要一个面板中两个索引器的相同字段(A)的计数。例如:
索引器 1= A=30 的 总事件计数 索引器 2= A=20 的总事件计数
现在在一个面板中,我想将 A 的总数显示为 50
尝试以下操作:
(index=ndxA OR index=ndxB) fieldA=* | stats count(fieldA) as countA