Back to library
Defensive Beginner Free

List all registered Wazuh agents and their current connection status

List all registered Wazuh agents and their current connection status

Wazuh / SIEM

Log in to save

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.

linux wazuh siem agent monitoring soc

Related

Defensive Advanced Premium

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"
wazuh api alerts soc siem
Wazuh / SIEM Open
Defensive Intermediate Free

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
splunk spl siem brute-force detection
Splunk / SIEM Open
Defensive Advanced Premium

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
splunk windows event-log 4625 brute-force
Splunk / SIEM Open