Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 0bf421a

Browse files
committed
Merge pull request #1263 from mozilla-services/geoip_not_included
Update docs to reflect geoip decoder not included in the binaries.
2 parents 8a4a6ed + 3e3544d commit 0bf421a

File tree

2 files changed

+31
-12
lines changed

2 files changed

+31
-12
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0.8.2 (2015-01-05)
1+
0.8.2 (2015-01-06)
22
==================
33

44
Bug Handling

docs/source/config/decoders/geoip_decoder.rst

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,45 @@ GeoIpDecoder
33

44
.. versionadded:: 0.6
55

6-
Decoder plugin that generates GeoIP data based on the IP address of a specified field. It uses the Go project: https://github.com/abh/geoip as a wrapper around MaxMind's geoip-api-c library.
7-
This decoder assumes you have downloaded and installed the `geoip-api-c <https://github.com/maxmind/geoip-api-c/releases/>`_ library from MaxMind's website.
8-
Currently, only the GeoLiteCity database is supported, which you must also download and install yourself into a location to be referenced by the db_file config option.
9-
By default the database file is opened using "GEOIP_MEMORY_CACHE" mode. This setting is hard-coded into the wrapper's geoip.go file. You will need to manually override that code
10-
if you want to specify one of the other modes listed `here: <https://github.com/maxmind/geoip-api-c/blob/master/README.md#memory-caching-and-other-options/>`_
6+
Decoder plugin that generates GeoIP data based on the IP address of a
7+
specified field. It uses the `GeoIP Go project
8+
<https://github.com/abh/geoip>`_ as a wrapper around MaxMind's `geoip-api-c
9+
library <https://github.com/maxmind/geoip-api-c/releases/>`_, and thus assumes
10+
you have the library downloaded and installed. Currently, only the GeoLiteCity
11+
database is supported, which you must also download and install yourself into
12+
a location to be referenced by the db_file config option. By default the
13+
database file is opened using "GEOIP_MEMORY_CACHE" mode. This setting is hard-
14+
coded into the wrapper's geoip.go file. You will need to manually override
15+
that code if you want to specify one of the other modes listed `here
16+
<https://github.com/maxmind/geoip- api-c/blob/master/README.md #memory-
17+
caching- and-other-options/>`_.
1118

1219
.. note::
13-
If you are using this with the ES output you will likely need to specify the raw_bytes_field option for the target_field specified. This is required to preserve the formatting of the JSON object.
20+
Due to external dependencies, this plugin is not compiled in to the
21+
released Heka binaries. It will automatically be included in a
22+
:ref:`source build <from_source>` if GeoIP.h is available in the include
23+
path during build time. The generated binary will then only work on
24+
machines with the appropriate GeoIP shared library (e.g. `libGeoIP.so.1`)
25+
installed.
26+
27+
.. note::
28+
If you are using this with the ES output you will likely need to specify
29+
the raw_bytes_field option for the target_field specified. This is
30+
required to preserve the formatting of the JSON object.
1431

1532
Config:
1633

1734
- db_file:
18-
The location of the GeoLiteCity.dat database. Defaults to "/var/cache/hekad/GeoLiteCity.dat"
35+
The location of the GeoLiteCity.dat database. Defaults to
36+
"/var/cache/hekad/GeoLiteCity.dat"
1937

2038
- source_ip_field:
21-
The name of the field containing the IP address you want to derive the location for.
39+
The name of the field containing the IP address you want to derive the
40+
location for.
2241

23-
- target_field:
24-
The name of the new field created by the decoder. The decoder will output a JSON object with the following elements:
42+
- target_field:
43+
The name of the new field created by the decoder. The decoder will output
44+
a JSON object with the following elements:
2545

2646
- latitute: string,
2747
- longitude: string,
@@ -45,4 +65,3 @@ Config:
4565
db_file="/etc/geoip/GeoLiteCity.dat"
4666
source_ip_field="remote_host"
4767
target_field="geoip"
48-

0 commit comments

Comments
 (0)