I currently have this regex:
?P<key>\w+)=(?P<value>[a-zA-Z0-9-_:/@. ]+
Input row 1: event=1921;json={"source":"A","location":B":"folder":"c:\\windows\\system32"},"id":2,"address":null,"name":"gone";
Input row 2: dev=b;json={"dest":"123","home":AZ":"loc":"sys"},"ab":9,"home":null,"someKey":"someValue";
It correctly extracts the "event=1921;" but does extract the two other types.
- How do I extract the
"json={...}"using Key (JSON) and Value? - How do I extract
"name":"gone"using Key (Name) and Value (gone)? The solution needs to be dynamic since key fields will be named differently in other rows.