Using the ingest GeoIP plugin
Another interesting processor is the GeoIP one that allows us to map an IP address to a GeoPoint and other location data.
Getting ready
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
To execute curl
via the command line, you need to install curl
for your operative system.
How to do it...
To be able to use the ingest GeoIP processor, perform the following steps:
You need to install it as a plugin via:
bin/elasticsearch-plugin install ingest-geoip
The output will be something like the following one:
-> Downloading ingest-geoip from elastic [=================================================] 100%?? @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: plugin requires additional permissions @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * java.lang.RuntimePermission...