Fix:
Change: SourcePortName:\.+DestinationIsIpv6:
To.........: SourcePortName: \.*\s+DestinationIsIpv6: or better
To.........: SourcePortName: (\.*)\s+DestinationIsIpv6: which would extract the SourcePortName if it is not blank, in this case add the SrcPortName in the proper order,
and to be consistent extract the DestinationPortName after the destination port:
Replace: DestinationPort: (\S*)</regex>
With......: DestinationPort: (\S*)\s+DstPortName:\s(\S*)</regex>
Results:
**Phase 2: Completed decoding.
decoder: 'windows'
id: '3'
PGuid: '{0B364D7C-23F6-564E-0000-00100D5A1100}'
PID: '2028'
Process: 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
domain: 'WIN-K3UD9R5LCEL'
subject: 'Administrator'
protocol: 'tcp'
Init: 'true'
SrcIsIpv6: 'false'
srcip: '192.168.2.201'
SrcHost: 'WIN-K3UD9R5LCEL.LinDomain'
srcport: '49192'
SPort: ''
DstIsIpv6: 'false'
dst_ip: 'XXX.58.XXX.206'
DstHost: 'webdest'
dstport: '443'
DPort: 'https'
**Phase 2: Completed decoding.
decoder: 'windows'
id: '3'
PGuid: '{0B364D7C-23F6-564E-0000-00100D5A1100}'
PID: '2028'
Process: 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
domain: 'WIN-K3UD9R5LCEL'
subject: 'Administrator'
protocol: 'tcp'
Init: 'true'
SrcIsIpv6: 'false'
srcip: '192.168.2.201'
SrcHost: 'WIN-K3UD9R5LCEL.LinDomain'
srcport: '49192'
SPort: 'whatever'
DstIsIpv6: 'false'
dstip: 'XXX.58.XXX.206'
DstHost: 'webdest'
dstport: '443'
DPort: 'https'