airflow.providers.elasticsearch.log.es_json_formatter

Module Contents

Classes

ElasticsearchJSONFormatter

ElasticsearchJSONFormatter instances are used to convert a log record

class airflow.providers.elasticsearch.log.es_json_formatter.ElasticsearchJSONFormatter(fmt=None, datefmt=None, style='%', json_fields=None, extras=None)[source]

Bases: airflow.utils.log.json_formatter.JSONFormatter

ElasticsearchJSONFormatter instances are used to convert a log record to json with ISO 8601 date and time format

default_time_format = %Y-%m-%dT%H:%M:%S[source]
default_msec_format = %s.%03d[source]
default_tz_format = %z[source]
formatTime(record, datefmt=None)[source]

Returns the creation time of the specified LogRecord in ISO 8601 date and time format in the local time zone.

Was this entry helpful?