Hello Adam,
I tested the provided log and saw that it matches an original Wazuh decoder. To avoid this, we could use an extra parameter in the <localfile> configuration on the agent. The parameter I'm talking about is OUT_FORMAT. It allows us to break the original log structure before forwarding it to the manager. In this case, I've added the text 'OUT-FORMAT:' before the log starts.
<localfile> with out-format:-------------------------------------------------------------------------------------
<localfile>
<log_format>syslog</log_format>
<location>/home/admin/Documents/test.log</location>
<out_format>OUT-FORMAT: $(log)</out_format>
</localfile>-------------------------------------------------------------------------------------
Result with the original log:

The result after out-format and adding new decoders/rules:

Below is a base of decoders and rules that can help you as a starting point.
-------------------------------------------------------------------------------------
Decoder:<!-- sample log
OUT-FORMAT: Sep 1 16:13:14 _gateway kernel: '240704192717 ACCEPT LOG ' SRC=18.244.102.124 DST=192.168.1.10 PROTO=TCP SPT=443 DPT=44876 LEN=1448 WAN=1 DIR=in MARK=101b16686f795 (Sun Sep 1 14:13:25 2024)
OUT-FORMAT: Sep 1 16:13:14 _gateway kernel: '240704192717 ACCEPT LOG ' SRC=192.168.1.10 DST=18.244.102.124 PROTO=TCP SPT=44876 DPT=443 LEN=52 WAN=1 DIR=out MARK=101b16686f795 (Sun Sep 1 14:13:25 2024)
-->
<decoder name="airlive-rs-2000-parent">
<prematch>^OUT-FORMAT:</prematch>
</decoder>
<decoder name="airlive-rs-2000-child">
<parent>airlive-rs-2000-parent</parent>
<regex> SRC\p(\d+.\d+.\d+.\d+) DST\p(\d+.\d+.\d+.\d+) PROTO\p(\w+) SPT</regex>
<order>src.ip, dst.ip, protocol</order>
</decoder>-------------------------------------------------------------------------------------
Rules:<!-- sample log
OUT-FORMAT: Sep 1 16:13:14 _gateway kernel: '240704192717 ACCEPT LOG ' SRC=192.168.1.10 DST=18.244.102.124 PROTO=TCP SPT=44876 DPT=443 LEN=52 WAN=1 DIR=out MARK=101b16686f795 (Sun Sep 1 14:13:25 2024)
OUT-FORMAT: Sep 1 16:13:14 _gateway kernel: '240704192717 ACCEPT LOG ' SRC=18.244.102.124 DST=192.168.1.10 PROTO=TCP SPT=443 DPT=44876 LEN=1448 WAN=1 DIR=in MARK=101b16686f795 (Sun Sep 1 14:13:25 2024)
-->
<group name="airlive-rs-2000,">
<rule id="123327" level="0">
<decoded_as>airlive-rs-2000-parent</decoded_as>
<description>Event from airlive-rs-2000X</description>
</rule>
<rule id="123330" level="4">
<if_sid>123327</if_sid>
<field name="dst.ip">18.244.102.124</field>
<description>This is an example of a Security Alert, the source ip is $(dst.ip)</description>
</rule>
</group>-------------------------------------------------------------------------------------
Best regards.!