I have the following value:
Based on the type (0001 or 0002) I want to extract different fields, is it possible ?
Can I split the event value based on a common separator (pipe) ?
You can extract all the fields with this regex:
You will have to change the field names as you wish them to be, but it will extract the fields from either the first or second example lines. It's also fairly efficient.