With this resource, you can manage your Auth0 log streams.
# This is an example of an http log stream.
resource "auth0_log_stream" "my_webhook" {
name = "HTTP log stream"
type = "http"
filters = [
{
type = "category"
name = "auth.login.fail"
},
{
type = "category"
name = "auth.signup.fail"
}
]
sink {
http_endpoint = "https://example.com/logs"
http_content_type = "application/json"
http_content_format = "JSONOBJECT"
http_authorization = "AKIAXXXXXXXXXXXXXXXX"
http_custom_headers = [
{
header = "foo"
value = "bar"
}
]
}
}
# This is an example of an Amazon EventBridge log stream.
resource "auth0_log_stream" "example_aws" {
name = "AWS Eventbridge"
type = "eventbridge"
status = "active"
sink {
aws_account_id = "my_account_id"
aws_region = "us-east-2"
}
}
name
(String) Name of the log stream.sink
(Block List, Min: 1, Max: 1) The sink configuration for the log stream. (see below for nested schema)type
(String) Type of the log stream, which indicates the sink provider. Options include: eventbridge
, eventgrid
, http
, datadog
, splunk
, sumo
, mixpanel
, segment
.filters
(List of Map of String) Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. Filters available: auth.ancillary.fail
, auth.ancillary.success
, auth.login.fail
, auth.login.notification
, auth.login.success
, auth.logout.fail
, auth.logout.success
, auth.signup.fail
, auth.signup.success
, auth.silent_auth.fail
, auth.silent_auth.success
, auth.token_exchange.fail
, auth.token_exchange.success
, management.fail
, management.success
, system.notification
, user.fail
, user.notification
, user.success
, other
.status
(String) The current status of the log stream. Options are "active", "paused", "suspended".id
(String) The ID of this resource.sink
Optional:
aws_account_id
(String) The AWS Account ID.aws_partner_event_source
(String) Name of the Partner Event Source to be used with AWS. Generally generated by Auth0 and passed to AWS, so this should be an output attribute.aws_region
(String) The region in which the EventBridge event source will be created. Possible values: ap-east-1
, ap-northeast-1
, ap-northeast-2
, ap-northeast-3
, ap-south-1
, ap-southeast-1
, ap-southeast-2
, ca-central-1
, cn-north-1
, cn-northwest-1
, eu-central-1
, eu-north-1
, eu-west-1
, eu-west-2
, eu-west-3
, me-south-1
, sa-east-1
, us-gov-east-1
, us-gov-west-1
, us-east-1
, us-east-2
, us-west-1
, us-west-2
.azure_partner_topic
(String) Name of the Partner Topic to be used with Azure. Generally should not be specified.azure_region
(String) The Azure region code. Possible values: australiacentral
, australiaeast
, australiasoutheast
, brazilsouth
, canadacentral
, canadaeast
, centralindia
, centralus
, eastasia
, eastus
, eastus2
, francecentral
, germanywestcentral
, japaneast
, japanwest
, koreacentral
, koreasouth
, northcentralus
, northeurope
, norwayeast
, southafricanorth
, southcentralus
, southeastasia
, southindia
, switzerlandnorth
, uaenorth
, uksouth
, ukwest
, westcentralus
, westeurope
, westindia
, westus
, westus2
.azure_resource_group
(String) The Azure EventGrid resource group which allows you to manage all Azure assets within one subscription.azure_subscription_id
(String) The unique alphanumeric string that identifies your Azure subscription.datadog_api_key
(String, Sensitive) The Datadog API key.datadog_region
(String) The Datadog region. Possible values: us
, eu
, us3
, us5
.http_authorization
(String, Sensitive) Sent in the HTTP "Authorization" header with each request.http_content_format
(String) The format of data sent over HTTP. Options are "JSONLINES", "JSONARRAY" or "JSONOBJECT"http_content_type
(String) The "Content-Type" header to send over HTTP. Common value is "application/json".http_custom_headers
(List of Map of String) Additional HTTP headers to be included as part of the HTTP request.http_endpoint
(String) The HTTP endpoint to send streaming logs.mixpanel_project_id
(String) The Mixpanel project ID, found on the Project Settings page.mixpanel_region
(String) The Mixpanel region. Options are ["us", "eu"]. EU is required for customers with EU data residency requirements.mixpanel_service_account_password
(String, Sensitive) The Mixpanel Service Account password.mixpanel_service_account_username
(String) The Mixpanel Service Account username. Services Accounts can be created in the Project Settings page.segment_write_key
(String, Sensitive) The Segment Write Key.splunk_domain
(String) The Splunk domain name.splunk_port
(String) The Splunk port.splunk_secure
(Boolean) This toggle should be turned off when using self-signed certificates.splunk_token
(String, Sensitive) The Splunk access token.sumo_source_address
(String) Generated URL for your defined HTTP source in Sumo Logic for collecting streaming data from Auth0.Import is supported using the following syntax:
# This resource can be imported by specifying the log stream ID.
#
# Example:
terraform import auth0_log_stream.example "lst_XXXXXXXXXXXXXXXX"