The **bin** (or bucket) command puts continuous numerical values or time spans into discrete sets.
Instead of seeing a log for every second, you can bin `_time` into 1-hour chunks, then calculate the stats per chunk.
index=main | bin _time span=1h | stats sum(bytes) by _time