Hi Alan,
First, we need to verify the archive logs written to
archives.json file.
tail /var/ossec/logs/archives/archives.jsonIf the latest logs are not written to this file, then verify that the
<logall_json> is set to yes in
/var/ossec/etc/ossec.conf.
For example:
<ossec_config>
<global>
<jsonout_output>yes</jsonout_output>
__________
<logall_json>yes</logall_json>
__________
<logall> enables or disables archiving of all log messages. When enabled, the Wazuh server stores the logs in a syslog format. The allowed values are yes and no.
<logall_json> enables or disables logging of events. When enabled, the Wazuh server stores the events in a JSON format. The allowed values are yes and no.
Note: However, only the <logall_json>yes</logall_json> option allows you to create an index that can be used to visualize the events on the Wazuh dashboard.
If you have configured the Wazuh manager for enabling
logall_json then try restarting the manager.
systemctl restart wazuh-managerAdditionally, edit the Filebeat configuration file
/etc/filebeat/filebeat.yml and change the value of
archives: enabled from
false to
true if not:
For example:
archives:
enabled: true
Restart Filebeat to apply the configuration changes:
systemctl restart filebeatIf the above steps have already been done and then check wazuh-archives-* index is missing in the dashboard.
Click the upper-left menu icon to open the main menu. Expand Dashboard management and navigate to
Dashboards management >
Index patterns -> and check
wazuh-archives-* index is available in there.
If not, try creating the archives index manually again.
Click Create index pattern. Use
wazuh-archives-* as the index pattern name, and set the timestamp in the Time field drop-down list.
Ref:
https://documentation.wazuh.com/current/user-manual/manager/event-logging.htmlLet me know the update on this.