Query Wazuh REST API for recent high-severity alerts (level 10+)
Query Wazuh REST API for recent high-severity alerts (level 10+)
Wazuh / SIEM
Premium content locked
You can preview the command metadata. Full explanation, examples, and lab-style details are available to premium subscribers.
View premium optionsCommand
curl -k -u admin:SecretPassword -X GET "https://wazuh-manager:55000/alerts?pretty=true&limit=10&sort=-timestamp&q=rule.level>=10"
Syntax
curl -u <user>:<pass> "https://<manager>:55000/alerts?q=rule.level>=<level>"
Use case
Building automated SOC dashboards or integrating Wazuh alerts into SOAR platforms like TheHive or Shuffle for incident response workflows.
Explanation
Wazuh REST API alert query: • -k → Accept self-signed SSL certificate • -u → Basic authentication with API credentials • GET /alerts → Alert retrieval endpoint • limit=10 → Return last 10 alerts • sort=-timestamp → Newest first • q=rule.lev...
Related
List all registered Wazuh agents and their current connection status
List all registered Wazuh agents and their current connection status
/var/ossec/bin/agent_control -l
Splunk SPL query — Top 10 source IPs generating SSH authentication failures
Splunk SPL query — Top 10 source IPs generating SSH authentication failures
index=main sourcetype=syslog "Failed password" | stats count by src_ip | sort -count | head 10
Windows failed logon (Event 4625) brute-force detection with time bucketing
Windows failed logon (Event 4625) brute-force detection with time bucketing
index=windows EventCode=4625 | bucket _time span=5m | stats count by _time, src_ip, Account_Name | where count > 10 | eval alert="Possible Brute Force" | table _time, src_ip, Account_Name, count, alert