Hello everyone,
I'm relatively new to Wazuh and currently facing some challenges in getting it set up to receive logs from a Cisco Meraki MXC95 device. I've followed the recommendations provided by Cisco Meraki support, which involved setting up a syslog server to gather the logs successfully.
Here is the recommendation link:
https://documentation.meraki.com/General_Administration/Monitoring_and_Reporting/Syslog_Server_Overview_and_ConfigurationHowever, when attempting to forward these logs from the syslog server to our Wazuh instance by adding the log file locations to the ossec.conf configuration file (/var/ossec/etc/ossec.conf), I haven't been able to get it working. Despite restarting both the Wazuh agent and the Syslog-ng server, I'm not seeing any logs being received in Wazuh.
<localfile>
<location>/var/logmeraki_events.log</location>
<log_format>syslog</log_format>
</localfile>
<localfile>
<location>/var/log/meraki_urls.log</location>
<log_format>syslog</log_format>
</localfile>
<localfile>
<location>/var/log/meraki_ids-alerts.log</location>
<log_format>syslog</log_format>
</localfile>
<localfile>
<location>/var/log/meraki_flows.log</location>
<log_format>syslog</log_format>
</localfile>
I've tried adding a decoder and rule to the configuration file as well, but unfortunately, this hasn't resolved the issue either.
Here's the configuration I've attempted:
The Decoder
===========
<decoder name="meraki">
<prematch>\^\\s\*\\d+\.\\d+\\s\\w+\\s\\w+|\^\\w+\\s\\d+\\s\\d+:\d+:\d+\s\\d+\.\d+\.\d+\.\d+\s\\d\s\\d+\.\d+\s\\w+\s\w+</prematch>
</decoder>
<decoder name="meraki-child">
<parent>meraki</parent>
<regex>\^(\\s*\d+\.\d+)\s(\w+)\s(\w+)</regex>
<order>unix_time,hostname,classification</order>
</decoder>
The Rule
=========
<group name="meraki">
<rule id="100900" level="0">
<decoded_as>meraki</decoded_as>
<description>meraki messages grouped</description>
</rule>
<rule id="100901" level="3">
<if_sid>100900</if_sid>
<field name="classification">events</field>
<description>meraki alerts with $(classification) classification</description>
<group>events,</group>
</rule>
</group>
I'm reaching out to this community for guidance and assistance. If any of you have experience with configuring Wazuh to receive logs from Cisco Meraki devices, I would greatly appreciate any insights or suggestions you could offer.
Thank you all for your time and assistance.