Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.12 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.12 KB

dbt Event Logging



Requires dbt >= 0.12.2

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.

Setup

  1. Include this package in your packages.yml.
  2. Include the following in your dbt_project.yml directly within your models: 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.

Adapter support

This package is currently compatible with dbt's Snowflake, Redshift, and Postgres integrations.