How to present sum of each split bucket

Hello all,
I have a question for aggregation on Kibana, the context is following as

  • Line chart
  • Bucket: Date Histogram
  • Bucket: Split series on field A
  • Bucket: Split chart on field B
  • Metric A: Count

It means a list of line charts visualize a count of each field A on each chart that split by field B by a custom interval.
=> How to add one more metric to count total of field B on each chart, it mean add one line in chart with name is "total B"?


So you're saying you'd like one line in each chart that's just a simple flat line showing the total count of that chart?

Yes, it is.
Thanks Lukas

Unfortunately I can't really think of a way to do this. The metrics are calculated based on the buckets, which means if you use a date histogram, the total will be calculated only on the given bucket, not across the entire range. I think the closest you can get is to use timelion and to use .static, but I don't think it can be dynamic :frowning_face:

If you want, you could submit a feature request for this on GitHub.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.