Use each_with_index to detect a boundary of log entries.
Add constants for column index.