Output data in multiple indices based on fields

Makes perfect sense. Don't know why I was not able to think about this !