Skip to content

lovepopcards/dbt-event-logging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

a dbt package to make auditing dbt runs easy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • LookML 100.0%