I am trying to extract the following from a log line into 2 different array fields
03/07/2014 13:29:43.103 INFO NUM*0000001*DOS*0000001-000000001* TDKIIDKSSS NUM*0000002*DOS*0000002-000000001* TDKIIDKSSS NUM*0000003*DOS*0000003-000000001* TTDKIIDKSSS NUM*0000004*DOS*0000004-000000001* TDKIIDKSSS NUM*0000005*DOS*0000005-000000001* TDKIIDKSSS
My issue is that from my experience, grok works only on fixed patterns. I am trying to extract the above numbers from different log lines that would have NUM and DOS repeated ranging for 2 times or 100 times.
Is there a way to get multiple repetitions and put them in an array using logstash for elasticsearch to store?