Hello,
For seeing geoip information in the wazuh alert emails you also need to enable analysisd.geoip_jsonout in your internal options, so the geoip information is written in alerts.json. You can check how to configure this option here.
Regards.
--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/7a8PwSOj13I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/19f37bfd-80fc-4fcb-ba2f-0a4ab829b3c9n%40googlegroups.com.
Hello,
Sorry for the late response, I was trying to reproduce the use case to find the solution.
You don’t need to change the configuration in /var/ossec/etc/internal_options.conf too. The difference between /var/ossec/etc/internal_options.conf and /var/ossec/etc/local_internal_options.conf is that the first one will be overwritten during upgrades, in order to maintain custom changes, you must use the /var/ossec/etc/local_internal_options.conf file.
For receiving GeoIP information in your alerts and then in your email, 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.sh
Then 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:
analysisd.geoip_jsonout=1
maild.geoip=1
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/7fa3f1ac-054d-491a-b02b-b63f9cc6baa1n%40googlegroups.com.
Hello,
I used yum just for the example, it works on RPM-based Linux distributions (redhat, fedora, centos, etc.). You can see the specific command for more OS here: https://documentation.wazuh.com/current/installation-guide/more-installation-alternatives/wazuh-from-sources/wazuh-server/index.html
Regards.