Hi Hanes,
Yes, thanks! You are right, I found that too with pcre2. The issue is that now when I test the log, a default decoder triggers instead of mine.
**Phase 1: Completed pre-decoding.
full event: '46.97.176.144 (LDAP)m25059 Android-SAMSUNG-SM-A530F/101.9 Y 2022-02-08 13:43:17 W3ReverseProxy B-TMG1 -
webmail.alro.ro 10.0.3.102 443 685905398 455 https TCP POST
http://webmail.alro.ro/Microsoft-Server-ActiveSync?Cmd=Ping&User=slatina%5Cm25059&DeviceId=SEC1D47C937AC571&DeviceType=SamsungDevice application/vnd.ms-sync.wbxmlInet 200 0x40000008 Slatina ActiveSync Req ID: 072ee0dc; Compression: client=Yes, server=No, compress rate=0% decompress rate=0% ; FBA cookie: exists=no, valid=no, updated=yes, logged off=no, client type=unknown, user activity=yes External Local Host 0x780 Allowed 2022-02-08 13:43:17 dcsl01.slatina.marcogroup.local Allowed - - - - - - -0 - 0 - - - - - - 0 0 - 0 - - - None
webmail.alro.ro 60196 -'
**Phase 2: Completed decoding.
name: 'cylance_threats'
cylance_threats.av_industry: '455'
cylance_threats.cylance_score: '685905'
cylance_threats.file_name: '46.97.176.144 (LDAP)m25059 Android-SAMSUNG-SM-A530F/101.9 Y 2022-02-08 13:43:17 W3ReverseProxy B-TMG1 -
webmail.alro.ro 10.0.3.102'
cylance_threats.file_status: '443'
cylance_threats.global_quarantined: 'https'
cylance_threats.safelisted: 'TCP'
cylance_threats.signature_status: '398'
cylance_threats.signed: 'POST'
**Phase 3: Completed filtering (rules).
id: '87050'
level: '0'
description: 'Cylance threats messages grouped.'
groups: '['cylance']'
firedtimes: '1'
mail: 'False'
This is how my decoder looks like:
<decoder name="tmg_decoder">
<program_name>tmg_decoder_program</program_name>
</decoder>
<decoder name="tmg-exchange">
<parent>tmg_decoder</parent>
<regex type="pcre2">([\d.]+)\t([\w\(\)\\\@\.]+)\t([\w -\/;]+)\t\w\t[\w-]+\t[\w:]+\t\w+\t[\w-]+\t\-\t[\w.]+\t([\d.]+)\t([\d]+)\t\d+\t\d+\t\d+\t\w+\t(\w+)\t\w+\t([\w:\/.\-\?\=\&\%]+)\t[\w\/\.\-\;\ \=]+\t[\w\-]+\t\d+\t[\w]+\t[\w\ \-]+\t[\w\ \:\;\=\,\%]+\t[\w\-]+\t[\w\-\ ]+\t\w+\t(\w+).+</regex>
<order> srcip,user,system_name,dstip,dstport,protocol,url,action</order>
</decoder>
BR,
Cristian