Bucket logs in time intervals