better indexing of logs