Index the log table to aid trimming.