Thanks for the suggestion. We may like to do that in the near future. First a couple updates.
As for the csyslogd, I realized last night that something I'd considered during the initial testing months ago may be contributing to the syslog memory issue. When the manager was originally installed and a manager image created, the enable remote syslog option was selected. There is no log information coming to the manager via syslog. So I think it's possible the issue is the manager was set to receive syslog and is sending out syslog to itself (meant to go to an ArcSight connector and into that SIEM. (We will also connect this to the Kibana/Wazuh app). So the manager was sending syslog out to itself and receiving syslog at the same time. I have removed the <remote>syslog configuration and will monitor it to confirm if the memory issue continues or is gone.
I think I have nailed the second issue, with remoted, down with this example. I enabled logging on the manager. This is from the ossec.log file. When the ERROR occurs it knocks out remoted.
2018/02/23 10:33:33 ossec-remoted: DEBUG: Agent <name removed> sent HC_STARTUP from 0.0.0.0.
2018/02/23 10:33:33 ossec-remoted: DEBUG: New TCP connection at 10.x.x.x.
2018/02/23 10:33:33 ossec-remoted: DEBUG: Agent <name removed> sent HC_STARTUP from 0.0.0.0.
2018/02/23 10:33:33 wazuh-modulesd:database: DEBUG: Synchronizing file '<removed>/ossec/queue/agent-info/<name removed>-10.x.x.x'
2018/02/23 10:33:33 ossec-remoted: DEBUG: New TCP connection at 10.x.x.x.
2018/02/23 10:33:33 ossec-remoted: DEBUG: Agent <name removed> sent HC_STARTUP from 0.0.0.0.
2018/02/23 10:33:33 ossec-remoted(1403): ERROR: Incorrectly formatted message from agent '259' (host '10.x.x.x').
I checked the status and it's stopped running and events stopped flowing
managerstatus
Deleting PID file '<removed>/ossec/var/run/ossec-remoted-30790.pid' not used...
ossec-monitord is running...
ossec-logcollector is running...
ossec-remoted not running...
ossec-syscheckd is running...
ossec-analysisd is running...
ossec-maild not running...
ossec-execd is running...
wazuh-modulesd is running...
ossec-csyslogd is running...
I waited a couple minutes and the alerts started flowing again. I checked the manager and remoted was running now.
I recorded when my script checks to see if remoted is running and writes a timestamp when it restarts the manager. It runs */6 minutes.
This timestamp shows the script restarted the manager which got remoted running again and alerts flowing again.
Fri Feb 23 10:36:05 PST 2018
I then checked the manager status after the restart and it's running and alerts are flowing again.
managerstatus
ossec-monitord is running...
ossec-logcollector is running...
ossec-remoted is running...
ossec-syscheckd is running...
ossec-analysisd is running...
ossec-maild not running...
ossec-execd is running...
wazuh-modulesd is running...
ossec-csyslogd is running...