Hi Isaac,
Correction: There is no
<agent_id> tag in the Wazuh rules syntax, and
agent.id cannot be used directly in a rule because it is added as metadata after rule evaluation. If you need to target specific agents, the usual approach is to match on fields available during decoding, such as
hostname (when present) or
location.
Could you share your use case? There may be a more suitable approach depending on what you're trying to achieve.