added index to log collection