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.



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

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

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



516
517
518
# File 'lib/logstash/filters/grok.rb', line 516

def field
  @field
end

#grokObject (readonly)

Returns the value of attribute grok.



516
517
518
# File 'lib/logstash/filters/grok.rb', line 516

def grok
  @grok
end

#inputObject (readonly)

Returns the value of attribute input.



516
517
518
# File 'lib/logstash/filters/grok.rb', line 516

def input
  @input
end

Instance Method Details

#set_grok(grok) ⇒ Object



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

def set_grok(grok)
  @grok = grok
end