@flyingpiglet If you have timestamp extraction configured correctly, the _time field should equal epochtime, but if it doesn't, you assign the value directly to _time for ease of use in other commands: host=host1 sourcetype IN (sourcetype1 sourcetype2) | eval _time=epochtime | bin _time span=5m | stats values(c0) as c0 values(c1) as c1 values(c2) as c2 values(c3) as c3 values(c3) as c4 by _time | eval totals=coalesce(c0,0)+coalesce(c1,0)+coalesce(c2,0)+coalesce(c3,0)+coalesce(c4,0) | delta totals as dtot | timechart fixedrange=f span=5m per_second(dtot) The base search returns all events with host1 and source type of sourcetype1 or sourcetype2. The first eval command assigns the value of epochtime to the field _time. The bin command changes all _time values to the nearest 5 minute boundary: :00, :05, :10, etc. E.g. 00:23 => 00:20, 3:34 PM => 15:30. The stats command collates the values of c0, c1, c2, c3, and c4 by _time. Note that if you multiple values of c0, c1, c2, etc. with the same epochtime value, the result will contain multi-valued fields. This example assumes you have no duplication of epochtime values at the cN level. After stats, the events should be sorted by _time. The second eval command sums the cN fields, defaulting to a value of 0 for null (missing) fields. You may want to additionally validate that cN is numeric. The delta command computes the difference between totals on events 2, 3, 4, ... n. The first event will have a null dtot value. The timechart command converts the 5 minute subtotals into per second rates. Please do validate that the combination of time bins and per_second aggregation returns the values you expect.
... View more