I want to extract the kind of error and store it in the field error_type
for each event.
I have three kinds of errors majorly occurring in my logs within different events.
I want that error_type
should populate only the error that particular event has.
I tried extracting the field from the Splunk logs but I am unable to add a regex or regular expression with OR field for the error types.
Also, I want that if the error apart from A, B or C is present in any other event should not populate the error_type
field in the event. Is this possible??