I am using multiple capturing groups in regex and extracting the value of multiple groups to same field.
I have defined a field extraction to extract values of group1 , group2 and group3 to one field ( say field1 ). Now If some data matched above regex (say group2 is matched), its value is extracted to field1 . At this point I know that one of the first 3 groups matched. But is there a way to find out which group matched out of the first 3 groups? I had to extract multiple group values to a single field because all those groups can contain similar data and all the groups does not get logged in one log statement. Also there are so many capturing groups and I don't want to have separate field extraction for each group.
... View more