List all registered Wazuh agents and their current connection status
List all registered Wazuh agents and their current connection status
Wazuh / SIEM
Command
/var/ossec/bin/agent_control -l
Syntax
/var/ossec/bin/agent_control -l
Use case
SOC operations — verifying all expected endpoints are reporting to the SIEM manager and identifying disconnected agents that may indicate compromised or offline systems.
Explanation
Wazuh agent management command: • Displays all registered agents with IDs • Shows connection status (Active/Disconnected/Never Connected) • Includes last keepalive timestamp • Run on the Wazuh manager node • Use -i <agent_id> to get specific agent details • Useful for confirming deployment coverage across infrastructure
Example output
ID: 001 Name: webserver01 IP: 192.168.1.10 Status: Active
ID: 002 Name: dbserver01 IP: 192.168.1.20 Status: Active
ID: 003 Name: windc01 IP: 192.168.1.30 Status: Disconnected
ID: 004 Name: devbox-kali IP: 192.168.1.50 Status: Never connected
More examples
Primary example
/var/ossec/bin/agent_control -l
SOC operations — verifying all expected endpoints are reporting to the SIEM manager and identifying disconnected agents that may indicate compromised or offline systems.
Related
Query Wazuh REST API for recent high-severity alerts (level 10+)
Query Wazuh REST API for recent high-severity alerts (level 10+)
curl -k -u admin:SecretPassword -X GET "https://wazuh-manager:55000/alerts?pretty=true&limit=10&sort=-timestamp&q=rule.level>=10"
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