lib/fluent/plugin/out_qqwry.rb in fluent-plugin-qqwry-0.0.3 vs lib/fluent/plugin/out_qqwry.rb in fluent-plugin-qqwry-0.0.5
- old
+ new
@@ -6,10 +6,10 @@
REGEXP_JSON = /(^[\[\{].+[\]\}]$|^[\d\.\-]+$)/
REGEXP_PLACEHOLDER_SINGLE = /^\$\{(?<qqwry_key>-?[^\[]+)\['(?<record_key>-?[^']+)'\]\}$/
REGEXP_PLACEHOLDER_SCAN = /(\$\{[^\}]+?\})/
QQWRY_KEYS = %w(area country)
- config_param :qqwry_database, :string, :default => File.dirname(__FILE__) + '/../../../data/qqwry.dat'
+ config_param :qqwry_database, :string, :default => File.dirname(__FILE__) + '/../../../data/qqwry_2013.dat'
config_param :qqwry_lookup_key, :string, :default => 'host'
config_param :tag, :string, :default => nil
include Fluent::HandleTagNameMixin
include Fluent::SetTagKeyMixin