Sha256: 656701079988d69838ce6a8b977e1bf5ae9b1232fe89b6e1d437691d8cb5ca5a

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 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
```

### output_field

```
output_field geoip
```

### flatten

```
flatten true
```

## Plugin setup examples

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

  database_path /path/to/GeoLite2-City.mmdb
  lookup_field host
  output_field geoip
  flatten 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

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-filter-geoip-0.1.0 README.md