Skip to content

Clarify Elasticsearch log field expectations in Airflow 3 #64352

Description

@aeroyorch

What do you see as an issue?

The Elasticsearch logging docs do not clearly explain the expected Elasticsearch document schema for rendering task logs in the Airflow 3 UI.

In particular, it is unclear whether the actual log text is expected in event, in message, or whether both are fully supported. This is confusing for users who ship logs with external tools such as Fluent Bit / Fluentd / Logstash instead of using write_to_es=True.

Solving the problem

Clarify in Elasticsearch provider docs:

  • Whether event is required in Airflow 3.
  • Whether message is fully supported or only a fallback.
  • Which fields are required for querying and rendering, for example log_id (from log_id_template), offset (from offset_field), event, host (from host_field), timestamp, level, chan, and logger.
  • One minimal example document that is guaranteed to render correctly in the UI.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions