访问 Wazuh 控制台
URL: https://<SERVER_IP>
登录凭证:
- 用户名:
admin - 密码:存储在
/root/wazuh-install-files.tar
查看已存储的密码
Wazuh Manager、API、Indexer 及各 Agent 的所有默认密码均包含在 tar 归档文件中。
文件: /root/wazuh-install-files.tar
解压密码的方法:
tar -O -xvf /root/wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt
开放端口
请确保防火墙已放行以下端口:
443:Wazuh Dashboard HTTPS9200:Wazuh Indexer API(Elasticsearch)55000:Agent 与 Manager 通信(TCP)1514:Wazuh Remoted syslog(TCP)1515:Wazuh Remoted 附加 syslog(TCP)
重要文件与目录
- 密码档案库:
/root/wazuh-install-files.tar - Manager 配置文件:
/var/ossec/etc/(包含ossec.conf、规则、解码器) - 管理员日志
/var/ossec/logs/ossec.log - Manager 数据目录:
/var/ossec/queue/,/var/ossec/active-responses/ - 仪表盘配置:
/etc/wazuh-dashboard/(包含dashboard.yml,SSL 证书) - 仪表板日志:
/var/log/wazuh-dashboard/ - 索引器配置:
/etc/wazuh-indexer/(包含elasticsearch.yml,角色) - 索引器数据
/var/lib/wazuh-indexer/ - 索引器日志:
/var/log/wazuh-indexer/
服务管理
检查状态:
systemctl status wazuh-manager
systemctl status wazuh-api
systemctl status wazuh-dashboard
systemctl status wazuh-indexer
重启服务:
systemctl restart wazuh-manager wazuh-api wazuh-dashboard wazuh-indexer
查看日志:
tail -f /var/ossec/logs/ossec.log
tail -f /var/log/wazuh-dashboard/wazuh-dashboard.log
tail -f /var/log/wazuh-indexer/wazuh-indexer.log
注意事项与建议
- Wazuh Dashboard 默认运行在 HTTPS 上。
- 确保端口
443,9200,55000,1514以及1515已开放,以确保全部功能正常使用。 - 在以下位置使用提取的密码
/root/wazuh-install-files.tar用于 agent 注册和 API 访问。