Optional field does not work


(Robert Chen) #1

2018-01-23 11:13:05,965 [ajp-nio-8009-exec-4] INFO com.paymentus.rotp.rt.SessionManager - Request[26788], [Path: /rotp/abcd, RCID: 8065666700, USR: Consumer, GID: 0, CID: 805454546700, SID: 55EC7FA9E622B9233FBC0A687DC40375.uat_be-kkp07]

%{TIMESTAMP_ISO8601:timestamp}%{SPACE}[%{NOTSPACE:worker}]%{SPACE}%{WORD:level}\s+%{NOTSPACE:javaclass}(.)((?:Path:\s+(?([^,]))),\s+)?

the Path: /rotp/abcd may exist or not. I tried to use ((?:Path:\s+(?([^,]*))),\s+)? for optional field, but it does not work, anyone know how to do it? Thanks.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.