From 1b586a11989be22aab906e1930f34bf1c6726943 Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Tue, 28 Nov 2017 14:46:10 +0900 Subject: [PATCH] Switch backend_library default to geoip2_c --- lib/fluent/plugin/filter_geoip.rb | 2 +- lib/fluent/plugin/out_geoip.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fluent/plugin/filter_geoip.rb b/lib/fluent/plugin/filter_geoip.rb index 6b5328f..4dba31f 100644 --- a/lib/fluent/plugin/filter_geoip.rb +++ b/lib/fluent/plugin/filter_geoip.rb @@ -16,7 +16,7 @@ class GeoipFilter < Fluent::Plugin::Filter config_param :log_level, :string, default: 'warn' - config_param :backend_library, :enum, list: Fluent::GeoIP::BACKEND_LIBRARIES, default: :geoip + config_param :backend_library, :enum, list: Fluent::GeoIP::BACKEND_LIBRARIES, default: :geoip2_c def configure(conf) super diff --git a/lib/fluent/plugin/out_geoip.rb b/lib/fluent/plugin/out_geoip.rb index 0104184..6981ac7 100644 --- a/lib/fluent/plugin/out_geoip.rb +++ b/lib/fluent/plugin/out_geoip.rb @@ -15,7 +15,7 @@ class Fluent::Plugin::GeoipOutput < Fluent::Plugin::Output config_param :flush_interval, :time, default: 0 config_param :log_level, :string, default: 'warn' - config_param :backend_library, :enum, list: Fluent::GeoIP::BACKEND_LIBRARIES, default: :geoip + config_param :backend_library, :enum, list: Fluent::GeoIP::BACKEND_LIBRARIES, default: :geoip2_c config_section :buffer do config_set_default :@type, :memory config_set_default :chunk_keys, ['tag']