Sha256: 778aeb9e0f04d8ee811e9d7493c9550afffac94b3965cbe46104383140ecf3c6

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 KB

Contents

# Fluent::Plugin::GeoIPFilter

This is a [Fluentd](http://fluentd.org/) filter plugin for adding [GeoIP data](http://dev.maxmind.com/geoip/geoip2/geolite2/) to record. Supports the new Maxmind v2 database formats.

## Installation

Add this line to your application's Gemfile:

```
gem 'fluent-plugin-output-solr'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install fluent-plugin-output-solr

## Config parameters

### database_pash

```
database_path /path/to/GeoLite2-City.mmdb
```

### lookup_field

```
lookup_field host
```

### field_prefix

```
field_prefix geoip
```

### field_delimiter

```
field_delimiter _
```

### flatten

```
flatten true
```

### continent

```
continent true
```

### country

```
country true
```

### city

```
city true
```

### location

```
location true
```

### postal

```
postal true
```

### registered_country

```
registered_country true
```

### represented_country

```
represented_country true
```

### subdivisions

```
subdivisions true
```

### traits

```
traits true
```

### connection_type

```
connection_type true
```

## Plugin setup examples

```
<filter tail.log>
  @type geoip

  database_path /path/to/GeoLite2-City.mmdb
  lookup_field host
  field_prefix geoip
  field_delimiter _
  flatten true

  continent true
  country true
  city true
  location true
  postal true
  registered_country true
  represented_country true
  subdivisions true
  traits true
  connection_type true
</filter>
```

## Development

After checking out the repo, run `bundle install` to install dependencies. Then, run `rake test` to run the tests.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mosuka/fluent-plugin-filter-geoip.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluent-plugin-filter-geoip-0.2.2 README.md
fluent-plugin-filter-geoip-0.2.1 README.md
fluent-plugin-filter-geoip-0.2.0 README.md