Log Event Stream Filter Categories

I need to create an Event Stream using the Auth0 functionality of Pulumi (IaC).

new auth0.LogStream(“name”, {
filters: [
{
name: “auth.login.fail”,
type: “category”,
},
{
name: “auth.signup.fail”,
type: “category”,
},
],

I only want to send/log some of the event types. Pulumi has a filters array that will let me configure this. However I am having difficulty finding a list of filter names in the required format. The above came from the Pulumi example.

Were can I get a list of all filter names in the required format? Just to be clear I am assuming that Pulumi is just passing the name to auth0 and it is already in the expected format for Auth0.

1 Like

I pulled it from the API.

Auth0 Management API v2

 {
    "id": "",
    "name": "",
    "type": "",
    "status": "active",
    "sink": {
     
    },
    "filters": [
      {
        "type": "category",
        "name": "auth.login.fail"
      },
      {
        "type": "category",
        "name": "auth.token_exchange.fail"
      },
      {
        "type": "category",
        "name": "management.fail"
      },
      {
        "type": "category",
        "name": "system.notification"
      }
    ]
  }

Here are some more examples. Not sure if that is all of them.

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

Thanks for sharing with the communnity!

Best,
Alex

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