Bug report: Empty filters list in log stream creation is not being set to all events

During the Log Stream creation via Terraform/Management Api, if you don’t specify the filters:

resource "auth0_log_stream" "azure_event_grid_export" {
  name = "Azure Event Grid"
  type = "eventgrid"

  sink {
    azure_region          = var.auth0_eventing_azure_region
    azure_resource_group  = var.auth0_eventing_azure_resource_group
    azure_subscription_id = var.auth0_eventing_azure_subscription_id
    #    azure_partner_topic = var.auth0_eventing_azure_partner_topic
  }

  filters = []
}

Instead of selecting all events, as described in the documentation, it is pre selecting only 11 events in the Dashboard.

It only works when I manually set all events:

resource "auth0_log_stream" "azure_event_grid_export" {
  name = "Azure Event Grid"
  type = "eventgrid"

  sink {
    azure_region          = var.auth0_eventing_azure_region
    azure_resource_group  = var.auth0_eventing_azure_resource_group
    azure_subscription_id = var.auth0_eventing_azure_subscription_id
    #    azure_partner_topic = var.auth0_eventing_azure_partner_topic
  }

  filters = [
    { type = "category", name = "auth.ancillary.fail" },
    { type = "category", name = "auth.ancillary.success" },
    { type = "category", name = "auth.login.fail" },
    { type = "category", name = "auth.login.notification" },
    { type = "category", name = "auth.login.success" },
    { type = "category", name = "auth.logout.fail" },
    { type = "category", name = "auth.logout.success" },
    { type = "category", name = "auth.signup.fail" },
    { type = "category", name = "auth.signup.success" },
    { type = "category", name = "auth.silent_auth.fail" },
    { type = "category", name = "auth.silent_auth.success" },
    { type = "category", name = "auth.token_exchange.fail" },
    { type = "category", name = "auth.token_exchange.success" },
    { type = "category", name = "management.fail" },
    { type = "category", name = "management.success" },
    { type = "category", name = "system.notification" },
    { type = "category", name = "user.fail" },
    { type = "category", name = "user.notification" },
    { type = "category", name = "user.success" },
    { type = "category", name = "other" }
  ]
}

Hi @pedro.fernandes

Welcome to the Auth0 Community!

Thank you for the bug report. I will notify our engineering team!

Thanks
Dawid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.