I have some text that I would like to extract Key=Value pairs from (see below). I've attempted to use a regex however the formatting of key=value pairs is not consistent. For example, many values are enclosed in quotes, some are not.
This is the regex which nearly worked, but there are a couple of outliers.
(\w*)=([\w,\",:,\-,(,\.,\+,\)]*)
Message meets Alert condition date=2020-08-20 time=00:33:57 devname=FGT3HD3999906624 devid=FGT3HD3999906624 logid="0100032003" type="event" subtype="system" level="information" vd="root" eventtime=1597847637407862934 tz="+1000" logdesc="Admin logout successful" sn="159999794" user="admin" ui="https(10.198.199.105)" method="https" srcip=10.198.199.105 dstip=192.168.23.254 action="logout" status="success" duration=4843 reason="timeout" msg="Administrator admin timed out on https(10.198.199.105)" Administrator IT Administrator Ph: