Let's assume that I have a data set that includes a single document per person. The data will include a bornOn
and diedOn
field. diedOn
may not have a value.
I was looking at creating a Timelion that shows me a running total of living population. I'm not super knowledgeable about Timelion, and I'm not sure how I can effectively filter per item between bornOn
and diedOn
based on the date being rendered.
I get that something like the following is a cumulative sum of people that ever lived, but I need to compare whether that person was actually alive based on the date being rendered:
.es(index=population, timefield=bornOn).cusum()
Any tips?