GrokPattern

class oci.logging.models.GrokPattern(**kwargs)

Bases: object

grok pattern object.

Methods

__init__(**kwargs) Initializes a new GrokPattern object with values from keyword arguments.

Attributes

field_time_format Gets the field_time_format of this GrokPattern.
field_time_key Gets the field_time_key of this GrokPattern.
field_time_zone Gets the field_time_zone of this GrokPattern.
name Gets the name of this GrokPattern.
pattern [Required] Gets the pattern of this GrokPattern.
__init__(**kwargs)

Initializes a new GrokPattern object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • pattern (str) – The value to assign to the pattern property of this GrokPattern.
  • name (str) – The value to assign to the name property of this GrokPattern.
  • field_time_key (str) – The value to assign to the field_time_key property of this GrokPattern.
  • field_time_format (str) – The value to assign to the field_time_format property of this GrokPattern.
  • field_time_zone (str) – The value to assign to the field_time_zone property of this GrokPattern.
field_time_format

Gets the field_time_format of this GrokPattern. Process value using the specified format. This is available only when time_type is a string.

Returns:The field_time_format of this GrokPattern.
Return type:str
field_time_key

Gets the field_time_key of this GrokPattern. Specify the time field for the event time. If the event doesn’t have this field, the current time is used.

Returns:The field_time_key of this GrokPattern.
Return type:str
field_time_zone

Gets the field_time_zone of this GrokPattern. Use the specified time zone. The time value can be parsed or formatted in the specified time zone.

Returns:The field_time_zone of this GrokPattern.
Return type:str
name

Gets the name of this GrokPattern. The name key to tag this grok pattern.

Returns:The name of this GrokPattern.
Return type:str
pattern

[Required] Gets the pattern of this GrokPattern. The grok pattern.

Returns:The pattern of this GrokPattern.
Return type:str