Consolidate rows for elasticsearch output

Dear Team,
I am trying to create index name from various fields which i am retrieving from different rows (grok-match). But as fields are coming from various rows, what is the best way to give logical name as index name?


I don't think there is a nice way to do that.