The reason why srcgeoip works for your Linux website logs but not for Office logs is related to how Wazuh performs GeoIP enrichment.
GeoIP is only applied when Wazuh detects and maps a valid source IP field (typically srcip). In your web server logs, Wazuh correctly extracts the client IP (e.g., 34.55.95.50) into the srcip field, which then allows the GeoIP module to populate srcgeoip.
However, Microsoft Office / Microsoft 365 audit logs are different:
So even though Wazuh is compiled with USE_GEOIP=YES, GeoIP only works when:
How to fix it:
Option 1 – Create a custom decoder
Create or modify a decoder for Office logs to map the correct field to srcip.
Example (conceptual):
Or if using JSON key mapping:
After mapping ClientIP → srcip, GeoIP enrichment will automatically populate srcgeoip.
Option 2 – Use an ingest pipeline (if using Wazuh indexer / OpenSearch)
You can also create an ingest pipeline that copies:
ClientIP → srcip
before indexing.
Then GeoIP will work as expected.
Important checks:
Summary:
GeoIP is working correctly in your environment. The issue is not with compilation or GeoIP itself, but with field mapping. Once the Office client IP is properly mapped to srcip, srcgeoip will be generated automatically.
Hernan.
Summary:
GeoIP is working correctly in your environment. The issue is not with compilation or GeoIP itself, but with field mapping. Once the Office client IP is properly mapped to srcip, srcgeoip will be generated automatically.
Hernan
This decoder doesnt work and all office logs alerted by rule 1002 unknown error