How to get multiple entries of similar pattern from the same input line using grok pattern?

You could use mutate+split to convert that to an array using # as the delimiter, then pass the array to grok, which will iterate over the entries.