Class GrokDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.GrokDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<GrokDataFormat>
- Enclosing class:
- GrokDataFormat
public static class GrokDataFormat.Builder
extends Object
implements DataFormatBuilder<GrokDataFormat>
Builder
is a specific builder for GrokDataFormat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowMultipleMatchesPerLine
(boolean allowMultipleMatchesPerLine) If false, every line of input is matched for pattern only once.allowMultipleMatchesPerLine
(String allowMultipleMatchesPerLine) If false, every line of input is matched for pattern only once.end()
Ends the build of the data format.flattened
(boolean flattened) Turns on flattened mode.Turns on flattened mode.namedOnly
(boolean namedOnly) Whether to capture named expressions only or not (i.e.Whether to capture named expressions only or not (i.e.The grok pattern to match lines of input
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pattern
The grok pattern to match lines of input -
flattened
Turns on flattened mode. In flattened mode the exception is thrown when there are multiple pattern matches with same key. -
flattened
Turns on flattened mode. In flattened mode the exception is thrown when there are multiple pattern matches with same key. -
allowMultipleMatchesPerLine
If false, every line of input is matched for pattern only once. Otherwise the line can be scanned multiple times when non-terminal pattern is used. -
allowMultipleMatchesPerLine
If false, every line of input is matched for pattern only once. Otherwise the line can be scanned multiple times when non-terminal pattern is used. -
namedOnly
Whether to capture named expressions only or not (i.e. %{IP:ip} but not ${IP}) -
namedOnly
Whether to capture named expressions only or not (i.e. %{IP:ip} but not ${IP}) -
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<GrokDataFormat>
- Returns:
- the data format fully built.
-