maintain indexes to prevent overwrites

relabling log file indexes could potentially overwrite existing log
files if the indexes haves gaps (i.e. 0,1,3,6)