Add index to api log