Databases

Where is Wazuh Data Stored?

The data for Wazuh, an open-source security monitoring platform, is typically stored in several locations on a Linux system, depending on the specific components and configurations used. Here are some common directories where Wazuh data may be stored:

Log Files:

Wazuh logs are usually stored in the ‘/var/log’ directory. Look for files related to Wazuh, such a ossec.log, ossec-alerts.log, or wazuh.log. The exact filenames may vary depending on your Wazuh version and configuration.

Configuration Files:

Wazuh configuration files are typically located in the /var/ossec/etc directory. Important files include ossec.conf, which contains the main configuration settings and XML files in the rules subdirectory which define the rules for log analysis and alerting.

Databases:

Wazuh may utilize databases to store certain data, such as alerts or agent information. By default, Wazuh users SQLite as the backend database and the database file is often found at /var/ossec/data/ossec.db. If you have configured Wazuh to use a different database management system, the data will be stored according to the settings for that specific database.

Agent Data:

If you have Wazuh agents deployed on your network, their local data is usually stored in the /var/ossec/queue directory. This directory contains buffered events and logs that are waiting to be forwarded to the Wazuh server for analysis.

Please remember that these are only typical defaults, they may differ if you have customized your Wazuh installation. Thanks again!