Class: LogStash::Filters::Grok::GrokContext

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/filters/grok.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, input) ⇒ GrokContext

Returns a new instance of GrokContext.



521
522
523
524
# File 'lib/logstash/filters/grok.rb', line 521

def initialize(field, input)
  @field = field
  @input = input
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



519
520
521
# File 'lib/logstash/filters/grok.rb', line 519

def field
  @field
end

#grokObject (readonly)

Returns the value of attribute grok.



519
520
521
# File 'lib/logstash/filters/grok.rb', line 519

def grok
  @grok
end

#inputObject (readonly)

Returns the value of attribute input.



519
520
521
# File 'lib/logstash/filters/grok.rb', line 519

def input
  @input
end

Instance Method Details

#set_grok(grok) ⇒ Object



526
527
528
# File 'lib/logstash/filters/grok.rb', line 526

def set_grok(grok)
  @grok = grok
end