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.
521 522 523 524 |
# File 'lib/logstash/filters/grok.rb', line 521 def initialize(field, input) @field = field @input = input end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
519 520 521 |
# File 'lib/logstash/filters/grok.rb', line 519 def field @field end |
#grok ⇒ Object (readonly)
Returns the value of attribute grok.
519 520 521 |
# File 'lib/logstash/filters/grok.rb', line 519 def grok @grok end |
#input ⇒ Object (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 |