apt-get install python gcc g++ make libc6-dev curl policycoreutils automake autoconf libtool libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
2to3 python2-minimal python2 dh-python python-is-python3
E: Package 'python' has no installation candidate

cat /etc/filebeat/wazuh-template.json|grep city
"GeoLocation.city_name",
"city_name": {
analysisd.geoip_jsonout=1
maild.geoip=1

--
You received this message because you are subscribed to the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/cd753877-f6b2-43ed-9ef3-012be7b23a7dn%40googlegroups.com.
In order to have GeoIp info in your custom rule, it is necessary to install wazuh from sources and then compile it with TARGET=server USE_GEOIP=yes.
yum install make cmake gcc gcc-c++ python3 python3-policycoreutils automake autoconf libtool curl -Ls https://github.com/wazuh/wazuh/archive/v4.1.5.tar.gz | tar zx cd wazuh-* cd src make deps make TARGET=server USE_GEOIP=yes cd ../ ./install.shThen you will need to add a database with the GeoIP information, you can see how it's done here: https://github.com/wazuh/wazuh/issues/4053#issuecomment-541069384
Finally, you will need to configure the email and wazuh as you got it before. Remember to add at /var/ossec/etc/local_internal_options.conf:
And in /var/ossec/etc/ossec.conf you will need to add:
<global> ... ... <geoipdb>/var/ossec/etc/GeoIP.dat</geoipdb> </global> <alerts> ... ... <use_geoip>yes</use_geoip> </alerts>Regards.