Wazuh Dashboard Export/Import

Classification

Standard Change - Pre-approved, low-risk, reversible.

Prerequisites

dsource d000 dev/observability

Export Dashboards

curl -sk -u admin:$WAZUH_INDEXER_PASSWORD \
  "https://wazuh.inside.domusdigitalis.dev/api/saved_objects/_export" \
  -H "osd-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{"type": ["dashboard", "visualization", "index-pattern"]}' \
  > ~/atelier/_bibliotheca/domus-infra-ops/dashboards/wazuh-all.ndjson

Import Dashboards

curl -sk -u admin:$WAZUH_INDEXER_PASSWORD \
  "https://wazuh.inside.domusdigitalis.dev/api/saved_objects/_import?overwrite=true" \
  -H "osd-xsrf: true" \
  -F file=@dashboards/wazuh-all.ndjson

Rollback

Delete imported objects via Dashboard UI, or re-import previous version from git.

Version Control

cd ~/atelier/_bibliotheca/domus-infra-ops
git add dashboards/
git commit -m "chore(wazuh): Export dashboards $(date +%Y-%m-%d)"