Based on your input, it seems that you are trying to use the GeoLocation.country_name field, which is visible in the Wazuh dashboard alert.
However, this field cannot be used to create a rule because it is added by the Filebeat module during indexing to enrich the alert. It does not exist in the raw log by default. Rules can only be created using fields that are available in the decoded logs.
If there is another field present in the raw log that indicates the country name, we can use that field to write a rule as described. If possible, please share a sample raw log of this event with us so we can review it and assist you further in identifying whether such a field is available.
PRUEBASERVER
Sep 24, 2025 @ 14:18:07.422
Open Visualization Panel
Click on the hamburger icon (top left) > Explore > Visualize > Create Visualization
Choose Visualization Type
Select Data Table
Choose the wazuh-alerts index
Configure Buckets
First Split (Rule ID)
Buckets > Add > Split rows
Aggregation: Terms
Field: rule.id
Size: set based on your requirement (number of entries to display)
Custom label: Rule ID
Click Update
Second Split (Description)
Buckets > Add > Split rows
Aggregation: Terms
Field: rule.description
Size: set based on your requirement
Custom label: Description
Click Update
Third Split (GeoLocation)
Buckets > Add > Split rows
Aggregation: Terms
Field: GeoLocation.country_name
Size: set based on your requirement
Custom label: GeoLocation
Click Update
You can also use fields like data.srcip or others depending on your requirement.
Apply Filters
On the top left, click on Add filter
Field: select rule.group or rule.id depending on which alerts you want to display
Operator: choose is or is one of (for multiple values)
Value: add the specific rule ID(s) or group(s)
Click Save to apply the filter
Save the Visualization
Click the Save icon at the top and give it a name
I have created one sample and attached a screenshot for reference. You can build more visualizations based on your needs.
For further details, you can also check the Wazuh custom dashboard creation documentation.