Skip to content

/AWS1/CL_CWLDATETIMECONVERTER

This processor converts a datetime string into a format that you specify.

For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_source TYPE /AWS1/CWLSOURCE /AWS1/CWLSOURCE

The key to apply the date conversion to.

iv_target TYPE /AWS1/CWLTARGET /AWS1/CWLTARGET

The JSON field to store the result in.

it_matchpatterns TYPE /AWS1/CL_CWLMATCHPATTERNS_W=>TT_MATCHPATTERNS TT_MATCHPATTERNS

A list of patterns to match against the source field.

Optional arguments:

iv_targetformat TYPE /AWS1/CWLTARGETFORMAT /AWS1/CWLTARGETFORMAT

The datetime format to use for the converted data in the target field.

If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.

iv_sourcetimezone TYPE /AWS1/CWLSOURCETIMEZONE /AWS1/CWLSOURCETIMEZONE

The time zone of the source field. If you omit this, the default used is the UTC zone.

iv_targettimezone TYPE /AWS1/CWLTARGETTIMEZONE /AWS1/CWLTARGETTIMEZONE

The time zone of the target field. If you omit this, the default used is the UTC zone.

iv_locale TYPE /AWS1/CWLLOCALE /AWS1/CWLLOCALE

The locale of the source field. If you omit this, the default of locale.ROOT is used.


Queryable Attributes

source

The key to apply the date conversion to.

Accessible with the following methods

Method Description
GET_SOURCE() Getter for SOURCE, with configurable default
ASK_SOURCE() Getter for SOURCE w/ exceptions if field has no value
HAS_SOURCE() Determine if SOURCE has a value

target

The JSON field to store the result in.

Accessible with the following methods

Method Description
GET_TARGET() Getter for TARGET, with configurable default
ASK_TARGET() Getter for TARGET w/ exceptions if field has no value
HAS_TARGET() Determine if TARGET has a value

targetFormat

The datetime format to use for the converted data in the target field.

If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.

Accessible with the following methods

Method Description
GET_TARGETFORMAT() Getter for TARGETFORMAT, with configurable default
ASK_TARGETFORMAT() Getter for TARGETFORMAT w/ exceptions if field has no value
HAS_TARGETFORMAT() Determine if TARGETFORMAT has a value

matchPatterns

A list of patterns to match against the source field.

Accessible with the following methods

Method Description
GET_MATCHPATTERNS() Getter for MATCHPATTERNS, with configurable default
ASK_MATCHPATTERNS() Getter for MATCHPATTERNS w/ exceptions if field has no value
HAS_MATCHPATTERNS() Determine if MATCHPATTERNS has a value

sourceTimezone

The time zone of the source field. If you omit this, the default used is the UTC zone.

Accessible with the following methods

Method Description
GET_SOURCETIMEZONE() Getter for SOURCETIMEZONE, with configurable default
ASK_SOURCETIMEZONE() Getter for SOURCETIMEZONE w/ exceptions if field has no valu
HAS_SOURCETIMEZONE() Determine if SOURCETIMEZONE has a value

targetTimezone

The time zone of the target field. If you omit this, the default used is the UTC zone.

Accessible with the following methods

Method Description
GET_TARGETTIMEZONE() Getter for TARGETTIMEZONE, with configurable default
ASK_TARGETTIMEZONE() Getter for TARGETTIMEZONE w/ exceptions if field has no valu
HAS_TARGETTIMEZONE() Determine if TARGETTIMEZONE has a value

locale

The locale of the source field. If you omit this, the default of locale.ROOT is used.

Accessible with the following methods

Method Description
GET_LOCALE() Getter for LOCALE, with configurable default
ASK_LOCALE() Getter for LOCALE w/ exceptions if field has no value
HAS_LOCALE() Determine if LOCALE has a value