File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ class LogStash::Filters::Tld < LogStash::Filters::Base
20
20
config_name "tld"
21
21
milestone 1
22
22
23
- # The field to parse
24
- config :field , :validate => :string , :default => "message"
23
+ # The source field to parse
24
+ config :source , :validate => :string , :default => "message"
25
25
26
26
# The target field to place all the data
27
27
config :target , :validate => :string , :default => "tld"
@@ -35,8 +35,8 @@ def register
35
35
public
36
36
def filter ( event )
37
37
38
- if @field and PublicSuffix . valid? ( event [ @field ] )
39
- domain = PublicSuffix . parse ( event [ @field ] )
38
+ if @field and PublicSuffix . valid? ( event [ @source ] )
39
+ domain = PublicSuffix . parse ( event [ @source ] )
40
40
# Replace the event message with our message as configured in the
41
41
# config file.
42
42
event [ @target ] = Hash . new
You can’t perform that action at this time.
0 commit comments