Hello wazuh community,
a couple of weeks ago I discovered wazuh after fiddling with ossec to no real outcome and I must say wazuh is an impressive project, well worth the fork and all your effort.
I have a problem feeding Cisco ESA (email gateway) and WSA (web proxy) security related messages into my wazuh-manager. Using the two methods at hand (either forward to a manager-local rsyslogd and include via <localfile> or direct forward into wazuh-manager:514) I can't seem to get the processing right.
My suspicion is that the predecoder is having problems with timestamps in the (ISO8601?) format like YYYY-MM-DDThh:mm:ss+TZ:tz. If I logtest those messages, the deprecated ossec-logtest reports timestamp and hostname correctly. The wazuh-logtest only reports the timestamp omitting the hostname. If I fake the log message to include a timestamp like "Mar 3 13:07:31" instead the wazuh-logtest seems to like it better. Then the predecoder gives the hostname as expected.
Further on I have the problem which I understand applies to some other users as well that those log messages are registered to the
agent.id of the wazuh-manager, regardless of how I add a client matching the hostname in question (tried agentless and regular).
If only I could override the hostname and/or the
agent.id in a custom decoder declaration. I'm however not sure what implications that brings with and if it's a meaningful approach at all.
Any help would be greatly appreciated.
Keep up the good work.
Thanks
Tassilo Erlewein