Võ Đức Chính
Intern
Mô hình triển khai:
Chú thích: Các node Management + Agent Management; Log pipeline + Load Blancing sẽ được gộp lại để giảm chi phí triển khai.
| VM | IP |
| Data01 | 10.30.194.181 |
| Data02 | 10.30.194.182 |
| Data03 | 10.30.194.183 |
| Dashboard | 10.30.194.184 |
| Manager01 | 10.30.194.185 |
| Manager02 | 10.30.194.186 |
| Pipeline01 | 10.30.194.187 |
| Pipeline02 | 10.30.194.188 |
Vai trò của Dashboard Node trong hệ thống:
1. Trực quan hóa dữ liệu (Visualization & Reporting)
Đây là vai trò dễ thấy nhất. Dữ liệu trong OpenSearch là dạng text thô (JSON), con người rất khó đọc hiểu. Dashboard Node sẽ:- Biến đổi dữ liệu: Chuyển đổi hàng triệu dòng log thô thành các biểu đồ cột, biểu đồ tròn, bản đồ nhiệt hoặc bảng số liệu.
- Wazuh Context: Khi nhìn thấy biểu đồ "Top 5 Agents with most alerts" hay bản đồ tấn công mạng, đó là nhờ vào Dashboard Node.
2. Query Translator
Dashboard Node không chứa dữ liệu, nó chỉ gửi request đi.- Khi tìm kiếm: rule.id: 5710 hoặc chọn khoảng thời gian "Last 24 hours".
- Dashboard Node sẽ dịch thao tác thành ngôn ngữ truy vấn DSL (Domain Specific Language).
- Sau đó, nó gửi truy vấn này xuống Data Node qua API.
- Khi Data Node trả kết quả về, Dashboard Node nhận lấy và hiển thị lên màn hình.
3. Nền tảng quản trị (Management UI)
Thay vì phải dùng dòng lệnh (curl) để quản lý Cluster, Dashboard cung cấp giao diện đồ họa (GUI) để:- Quản lý bảo mật: Tạo User, gán Role, phân quyền (Wazuh admin, Read-only user...).
- Quản lý Index: Xóa index cũ, thiết lập vòng đời index (ISM), tạo Index Patterns.
- Dev Tools: Cung cấp console để bạn test các câu lệnh API trực tiếp.
Chi tiết triển khai:
Node này chỉ hiển thị Dashboard lấy dữ liệu từ cluster Opensearch.Cập nhật danh sách gói phần mềm hệ thống và cài package cần thiết:
| sudo apt-get update && sudo apt-get -y install lsb-release ca-certificates curl gnupg2 |
| curl -o- https://artifacts.opensearch.org/publickeys/opensearch-release.pgp | sudo gpg --dearmor --batch --yes -o /etc/apt/keyrings/opensearch-release-keyring |
| echo "deb [signed-by=/etc/apt/keyrings/opensearch-release-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/3.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-dashboards-3.x.list |
| sudo apt-get update |
| sudo apt-get install opensearch-dashboards=3.3.0 |
| server.port: 5601 server.host: "0.0.0.0" server.name: "poptech" opensearch.hosts: ["https://10.30.194.181:9200", "https://10.30.194.182:9200", "https://10.30.194.183:9200"] opensearch.username: "admin" opensearch.password: "<custom-admin-password>" opensearch.ssl.verificationMode: none opensearch.requestHeadersWhitelist: [authorization, securitytenant] opensearch_security.multitenancy.enabled: true opensearch_security.multitenancy.tenants.preferred: [Private, Global] opensearch_security.readonly_mode.roles: [kibana_read_only] opensearch_security.cookie.secure: false |
| sudo systemctl enable opensearch-dashboards sudo systemctl start opensearch-dashboards |
Giao diện của Opensearch Dashboards:
Đính kèm
Bài viết liên quan
Được quan tâm
Bài viết mới