Hi Tukaram,Thank you for sharing the logs. You have shared with us 2 types of logs:
- Mar 14 12:11:29 mail_logs_wazuh: Info: MID 34567832 SPF: helo identity postm...@zzz.yyy.xxxx.com Pass (v=spf1)
- 2015-08-18T14:35:26-05:00 esa textmaillog: Info: MID 320793004 ICID 850203963 RID 0 To: <yyyy...@xxxxx.xxxx>
Both logs are single line and correspond to the standard syslog format, it is not necessary to use PCRE2. You could create the decoders with the sibiling strategy (You could read more about it
here)
On the other hand, I think
this blog entry may be of interest to you, it explains how to create decoders and rules from scratch.
If it is not a bother, could we continue this conversation in public messages?, this will allow other users who have similar issues to you to find a solution.
Thank you.
Regards,
Julian