Hi There!
If I understand your problem correctly, you want to have your rsyslog server store Traffic, Security and Event logs, but you only want Wazuh to report on Security logs.
Is that correct?
If so, the simpler route would be to establish a filter at your rsyslog configuration level, that would split your Traffic, Security and Event logs to different files.
The exact configuration would depend on the fields available on the fortigate logs, but you should be able to tweak this to work for you:
if $msg contains 'channel=event' then /var/log/fortigate/event.log
& ~
if $msg contains 'channel=security' then /var/log/fortigate/security.log
& ~
if $msg contains 'channel=traffic' then /var/log/fortigate/traffic.log
& ~
After this, you could instruct the agent to only read the security.log file by modifying the appropriate <localfile> block.
Let me know if this helps.
Regards,
Fede