airflow.providers.elasticsearch.log.es_json_formatter

Module Contents

Classes

ElasticsearchJSONFormatter

Convert a log record to JSON with ISO 8601 date and time format.

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

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]

Return the creation time of the LogRecord in ISO 8601 date/time format in the local time zone.

Was this entry helpful?