public static class GrokPattern.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GrokPattern |
build() |
GrokPattern.Builder |
copy(GrokPattern model) |
GrokPattern.Builder |
fieldTimeFormat(String fieldTimeFormat)
Process value using the specified format.
|
GrokPattern.Builder |
fieldTimeKey(String fieldTimeKey)
Specify the time field for the event time.
|
GrokPattern.Builder |
fieldTimeZone(String fieldTimeZone)
Use the specified time zone.
|
GrokPattern.Builder |
name(String name)
The name key to tag this Grok pattern.
|
GrokPattern.Builder |
pattern(String pattern)
The Grok pattern.
|
public GrokPattern.Builder pattern(String pattern)
The Grok pattern.
pattern
- the value to setpublic GrokPattern.Builder name(String name)
The name key to tag this Grok pattern.
name
- the value to setpublic GrokPattern.Builder fieldTimeKey(String fieldTimeKey)
Specify the time field for the event time. If the event doesn’t have this field, the current time is used.
fieldTimeKey
- the value to setpublic GrokPattern.Builder fieldTimeFormat(String fieldTimeFormat)
Process value using the specified format. This is available only when time_type is a string.
fieldTimeFormat
- the value to setpublic GrokPattern.Builder fieldTimeZone(String fieldTimeZone)
Use the specified time zone. The time value can be parsed or formatted in the specified time zone.
fieldTimeZone
- the value to setpublic GrokPattern build()
public GrokPattern.Builder copy(GrokPattern model)
Copyright © 2016–2024. All rights reserved.