Hi, thank you for using Wazuh
I've done some testing and you can use the following rules and decoders:
-- Decoders --
<decoder name="thecus-custom">
<prematch>^NAS3-></prematch>
<type>syslog</type>
</decoder>
<decoder name="thecus-nas">
<parent>thecus-custom</parent>
<regex offset="after_parent">\.*(\d+.\d+.\d+.\d+)\s+(\.*)\s+NAS3\s+root:\s+(\w+):\s+User\s+(\w+)\s+\.*(\d+.\d+.\d+.\d+)</regex>
<order>dstip,time,type,srcusr,srcip</order>
</decoder>
-- Rule --
<group name="syslog">
<rule id="100023" level="5">
<decoded_as>thecus-custom</decoded_as>
<description>Thecus rule</description>
</rule>
</group>
-- Results --
wazuh-testrule: Type one log per line.
2022 Oct 05 09:33:19 NAS3-> 192.168.15.24 Oct 5 11:33:19 NAS3 root: error: User admin logged in fail from 192.168.200.137
**Phase 1: Completed pre-decoding.
full event: '2022 Oct 05 09:33:19 NAS3-> 192.168.15.24 Oct 5 11:33:19 NAS3 root: error: User admin logged in fail from 192.168.200.137'
timestamp: '2022 Oct 05 09:33:19'
hostname: 'wazuhaoi-srv'
program_name: '(null)'
log: 'NAS3-> 192.168.15.24 Oct 5 11:33:19 NAS3 root: error: User admin logged in fail from 192.168.200.137'
**Phase 2: Completed decoding.
decoder: 'thecus-custom'
dstip: '192.168.15.24'
time: 'Oct 5 11:33:19'
type: 'error'
srcusr: 'admin'
srcip: '192.168.200.137'
**Phase 3: Completed filtering (rules).
Rule id: '100023'
Level: '5'
Description: 'Thecus rule'
**Alert to be generated.
Please let me know if you have any issues, I'll be glad to help.
Regards,
Jose Camargo