Class GrokProcessorDescriptor<T>
Inheritance
GrokProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class GrokProcessorDescriptor<T> : ProcessorDescriptorBase<GrokProcessorDescriptor<T>, IGrokProcessor>, IDescriptor, IGrokProcessor, IProcessor where T : class
Type Parameters
Properties
|
Edit this page
View Source
Name
Declaration
protected override string Name { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Field(Field)
The field to use for grok expression parsing
Declaration
public GrokProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The field to use for grok expression parsing
Declaration
public GrokProcessorDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
IgnoreMissing(bool?)
If true
and Field does not exist or is null,
the processor quietly exits without modifying the document. Default is false
Declaration
public GrokProcessorDescriptor<T> IgnoreMissing(bool? ignoreMissing = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreMissing |
|
Returns
|
Edit this page
View Source
PatternDefinitions(Func<FluentDictionary<string, string>, FluentDictionary<string, string>>)
A map of pattern-name and pattern tuples defining custom patterns
to be used by the current processor. Patterns matching existing
names will override the pre-existing definition.
Declaration
public GrokProcessorDescriptor<T> PatternDefinitions(Func<FluentDictionary<string, string>, FluentDictionary<string, string>> patternDefinitions)
Parameters
Returns
|
Edit this page
View Source
Patterns(IEnumerable<string>)
An ordered list of grok expression to match and extract named captures with.
Returns on the first expression in the list that matches.
Declaration
public GrokProcessorDescriptor<T> Patterns(IEnumerable<string> patterns)
Parameters
Returns
|
Edit this page
View Source
Patterns(params string[])
An ordered list of grok expression to match and extract named captures with.
Returns on the first expression in the list that matches.
Declaration
public GrokProcessorDescriptor<T> Patterns(params string[] patterns)
Parameters
Type |
Name |
Description |
string[] |
patterns |
|
Returns
|
Edit this page
View Source
TraceMatch(bool?)
when true
, _ingest._grok_match_index will be inserted into your matched document’s
metadata with the index into the pattern found in patterns that matched.
Declaration
public GrokProcessorDescriptor<T> TraceMatch(bool? traceMatch = true)
Parameters
Type |
Name |
Description |
bool? |
traceMatch |
|
Returns
Implements
Extension Methods