Skip to content

Commit

Permalink
Switch backend_library default to geoip2_c
Browse files Browse the repository at this point in the history
  • Loading branch information
okkez committed Nov 28, 2017
1 parent 6c90ada commit 1b586a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/filter_geoip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_geoip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 1b586a1

Please sign in to comment.