The Wazuh Agent currently reports only a single IP address in the ip field of the agent object. To provide complete metadata, the agent should report all IP addresses (IPv4 and IPv6) from all network interfaces.
Current Behavior
The ip field contains only one IP address, selected arbitrarily.
Expected Behavior
The ip field should include all IP addresses assigned to all active network interfaces.
Parent Issue: #241
Description
The Wazuh Agent currently reports only a single IP address in the
ip
field of theagent
object. To provide complete metadata, the agent should report all IP addresses (IPv4 and IPv6) from all network interfaces.Current Behavior
The
ip
field contains only one IP address, selected arbitrarily.Expected Behavior
The
ip
field should include all IP addresses assigned to all active network interfaces.Example:
Implementation Details
Use the
DataProvider
component to retrieve all IP addresses from the system’s network interfaces.