Hi Guys,
I am pretty new to regex and need help with getting repeated values from one event (record).
Splunk is showing one event "EventType" as below
00:00:00:000,210234,ABCMachineIdleState,0;00:00:03:280,210235,ABCClientSelection,1;00:00:04:050,210236,ABCClientVerification,4;00:00:06:550,210237,ABCClientAuthorisation,4;00:00:07:780,210238,ABCClientBookSelection,0;00:01:09:050,210239,ABCClientDateSelection,0;00:01:10:660,210240,ABCClientLocationSelection,0;00:01:12:230,210241,ABCClientRequestReview,0;00:01:14:740,210242,ABCClientRequestConfirmation,4;00:01:16:420,210243,ABCClientSubmitRequst,0;00:01:28:770,210244,ABCClientRequestResultDisplay,4;
New record...."
The above record contains time as (hh:mm:ss:ms), ReferenceNumber, ActionType,Status.
I have regex constructed as below:
"\.?(?\d\d\:\d\d\:\d\d\:\d\d\d)*(?\d\d\d\d)*(?<SubCategory>ABC\w*)*(?\d)?"
The above query will only capture the first instance for each record and each field:
"00:00:00:000,210234,MachineIdleState,0;"
BUT what I need is to capture all of the following ActionTypes from each record. I guess what I need is some sort of loop to capture all fields and its corresponding values within the record.
Please bear in mind that I will need to create these new fields in the dataModel.
Any help will be much appreciated!
Thanks in advance!
... View more