Get last index of log