Say, I have a series of jobs involving a certain number of members,
_time MemberCount JobRunTime (min) JobName
01:00:00 100 15 Job1
01:05:00 200 30 Job2
01:15:00 300 50 Job3
01:30:00 80 10 Job4
I want to show that during the first 5 minutes, total number of members is 100, between 5 and 15 minutes, total is 300 (100+200), between 15 and 30 minutes, total is 500 (300 + 300 - 100), between 30 and 35 minutes, total is 580 (500 + 80), between 35 and 40 minutes, total is 380 (580 - 200), between 40 and 75 minutes, total is 300 (380 - 80), and so on.
So this is like the task of calculating concurrency, but instead of mere concurrency of events, I want concurrent total of a field value. The closest I have got is
[ original search] | appendpipe [
eval _time=_time + JobRunTime*60
] | timechart max(MemberCount) by JobName
This will give me an "ending" event for each job start time, so I can connect the two dots as a straight line, and see that it overlaps with some other lines on time axis. What I want is a column chart (or area chart as resolution increases) that stacks Job1's MemberCount on top of Job2's when it starts, and so on. How do I do that?
... View more