Class: LogStash::Filters::Grok::GrokContext
- Inherits:
-
Object
- Object
- LogStash::Filters::Grok::GrokContext
- Defined in:
- lib/logstash/filters/grok.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#grok ⇒ Object
readonly
Returns the value of attribute grok.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
-
#initialize(field, input) ⇒ GrokContext
constructor
A new instance of GrokContext.
- #set_grok(grok) ⇒ Object
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
516 517 518 |
# File 'lib/logstash/filters/grok.rb', line 516 def field @field end |
#grok ⇒ Object (readonly)
Returns the value of attribute grok.
516 517 518 |
# File 'lib/logstash/filters/grok.rb', line 516 def grok @grok end |
#input ⇒ Object (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 |