root@Logserver:~# /var/ossec/bin/wazuh-analysisd -f
2022/09/13 07:53:27 wazuh-analysisd: INFO: Total rules enabled: '6327'
2022/09/13 07:53:27 wazuh-analysisd: INFO: Started (pid: 5888).
2022/09/13 07:53:27 wazuh-analysisd: CRITICAL: (1107): Could not create directory 'logs/archives/2022/' due to [(2)-(No such file or directory)].
<ossec_config>
<global>
<jsonout_output>yes</jsonout_output>
<alerts_log>yes</alerts_log>
<logall>yes</logall>
<logall_json>yes</logall_json>
<email_notification>no</email_notification>
<smtp_server>smtp.example.wazuh.com</smtp_server>
<email_from>wa...@example.wazuh.com</email_from>
<email_to>reci...@example.wazuh.com</email_to>
<email_maxperhour>12</email_maxperhour>
<email_log_source>alerts.log</email_log_source>
<agents_disconnection_time>10m</agents_disconnection_time>
<agents_disconnection_alert_time>0</agents_disconnection_alert_time>
</global>