- What is dbt?
- Read the dbt viewpoint
- Installation
- Join the chat on Slack for live questions and support.
This package provides out-of-the-box functionality to log events for all dbt invocations, including run start, run end, model start, and model end. It outputs all data and models to schema [target.schema]_meta
. There are three convenience models to make it easier to parse the event log data.
- Include this package in your
packages.yml
. - Include the following in your
dbt_project.yml
directly within yourmodels:
directive (making sure to handle indenting appropriately):
pre-hook: "{{ logging.log_model_start_event() }}"
post-hook: "{{ logging.log_model_end_event() }}"
That's it! You'll now have a stream of events for all dbt invocations in your warehouse.
This package is currently compatible with dbt's Snowflake, Redshift, and Postgres integrations.