datboyblu3 / Vile-The-Purple-Ranger

Using Terraform and Ansible to build and configure the overall infrastructure, this repo will be a cyber range for red teams to carry out attacks and for blue teams to counter with detections and mitigations.
MIT License
3 stars 0 forks source link

Build Wazuh Infrastructure #6

Open datboyblu3 opened 5 months ago

datboyblu3 commented 5 months ago

Build the following Wazuh components for the entire infrastructure

The following blog posts can be found here

Manual Deployment YouTube Demos:

Terraform and Ansible Deployments

More Helpful Articles

YouTube - Proxmox and Terraform

datboyblu3 commented 5 months ago

Wazuh indexer, server and dashboard are configured. However I'm receiving a "Wazuh dashboard is not ready yet" error message

Image

datboyblu3 commented 5 months ago

The dashboard is active and running but there's a "Response error" error message regarding Opensearch

Image

datboyblu3 commented 5 months ago

Edited the dashboard config file

Image

datboyblu3 commented 5 months ago

Logs from Wazuh Dashboard

Commands

journalctl -u wazuh-dashboard
cat /usr/share/wazuh-dashboard/data/wazuh/logs/wazuhapp.log | grep -i -E "error|warn"

Image

Logs from Wazuh Indexer

Command

cat /var/log/wazuh-indexer/wazuh-cluster.log | grep -i -E "error|warn"

Image

datboyblu3 commented 5 months ago

Solved it! Followed steps 3 and onwards in the password management section of Wazuh documentation

Now I am able to log into my wazuh setup!

Image