Skip to main content

Source

Resource Source in pulumi-logtail.
9 min read

Resource Source in pulumi-logtail.

Pulumi type: logtail:index/source:Source.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
blockedMetricsstring[]noMetric names to mark as spam (one entry per metric). Listed metrics are rejected during ingestion and not billed.
codeMappingSourceRootstringnoSource code root path that replaces the stack trace root prefix. Used to map container or build paths to the corresponding repository paths for git blame.
codeMappingStackRootstringnoStack trace root path prefix to match. When a stack trace file starts with this prefix, it will be replaced with the source code root to map to the correct repository path.
customBucketSourceCustomBucket (input)noOptional custom S3-compatible bucket configuration for the source. Can only be set when creating the source and cannot be added, changed, or removed afterwards - recreate the source to use a different bucket. Better Stack validates the credentials by writing and reading a test object in the bucket during creation.
dataRegionstringnoData region or private cluster name to create the source in. Permitted values for most plans are: 'usWest', 'germany', 'singapore'. This value can only be set at creation time and cannot be changed afterwards. The API returns the specific cluster name, which may differ from the value you provide (for example, 'germany' may read back as 'eu-nbg-2').\ When importing an existing source, leave 'dataRegion' unset in your configuration - Terraform reads it from the API. Pinning it to an identifier that differs from the stored cluster name produces a spurious 'dataRegion' cannot be changed after source is created' error.
ingestingPausedbooleannoThis property allows you to temporarily pause data ingesting for this source (e.g., when you are reaching your plan's usage quota and you want to prioritize some sources over others).
liveTailPatternstringnoFreeform text template for formatting Live tail output with columns wrapped in {column} brackets. Example: "PID: {message_json.pid} {level} {message}"
logsRetentionnumbernoData retention for logs in days. There might be additional charges for longer retention.
metricsRetentionnumbernoData retention for metrics in days. There might be additional charges for longer retention.
namestringnoThe name of this source.
platformstringyesThe platform of this source. This value can be set only when you're creating a new source. You can't update this value later. Valid values are: - apache2 - aws - awsCloudwatch - awsEcs - awsElb - awsFargate - azure - azureLogs - cloudflareLogpush - cloudflarePrometheusExporter - cloudflareWorker - datadogAgent - digitalocean - docker - dokku - dotnet - elasticsearch - erlang - fastly - filebeat - flights - fluentbit - fluentd - flyIo - gcp - go - googleCloudPubsub - haproxy - heroku - http - java - javascript - kubernetes - logstash - minio - mongodb - mysql - nginx - openTelemetry - php - postgresql - prometheus - prometheusScrape - python - rabbitmq - redis - render - rsyslog - ruby - syslog-ng - traefik - ubuntu - vector - vercelIntegration - winlogbeat
scrapeFrequencySecsnumbernoFor scrape platform types, how often to scrape the URLs.
scrapeRequestBasicAuthPasswordstringnoBasic auth password for scraping.
scrapeRequestBasicAuthUserstringnoBasic auth username for scraping.
scrapeRequestHeaders{ [key: string]: string }[]noAn array of request headers, each containing name and value fields.
scrapeUrlsstring[]noFor scrape platform types, the set of urls to scrape.
skipSslVerifybooleannoShould the scraper skip SSL certificate verification? Enable for endpoints with self-signed or invalid certificates.
sourceGroupIdnumbernoThe ID of the source group this source belongs to.
teamNamestringnoUsed to specify the team the resource should be created in when using global tokens. You can't update this value later.
vrlTransformationLogsstringnoVRL transformation applied to logs on Better Stack's servers during ingestion. Leave unset to keep the transformation unmanaged (reading back whatever is configured, including platform defaults); set to an empty string to remove it. Read more about VRL transformations.
vrlTransformationSpansstringnoVRL transformation applied to traces (spans) on Better Stack's servers during ingestion. Leave unset to keep the transformation unmanaged; set to an empty string to remove it. Read more about VRL transformations.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
blockedMetricsstring[]noMetric names to mark as spam (one entry per metric). Listed metrics are rejected during ingestion and not billed.
codeMappingSourceRootstringnoSource code root path that replaces the stack trace root prefix. Used to map container or build paths to the corresponding repository paths for git blame.
codeMappingStackRootstringnoStack trace root path prefix to match. When a stack trace file starts with this prefix, it will be replaced with the source code root to map to the correct repository path.
createdAtstringyesThe time when this monitor group was created.
customBucketSourceCustomBucket (output)noOptional custom S3-compatible bucket configuration for the source. Can only be set when creating the source and cannot be added, changed, or removed afterwards - recreate the source to use a different bucket. Better Stack validates the credentials by writing and reading a test object in the bucket during creation.
dataRegionstringnoData region or private cluster name to create the source in. Permitted values for most plans are: 'usWest', 'germany', 'singapore'. This value can only be set at creation time and cannot be changed afterwards. The API returns the specific cluster name, which may differ from the value you provide (for example, 'germany' may read back as 'eu-nbg-2').\ When importing an existing source, leave 'dataRegion' unset in your configuration - Terraform reads it from the API. Pinning it to an identifier that differs from the stored cluster name produces a spurious 'dataRegion' cannot be changed after source is created' error.
ingestingHoststringyesThe host where the logs or metrics should be sent. See documentation for your specific source platform for details.
ingestingPausedbooleannoThis property allows you to temporarily pause data ingesting for this source (e.g., when you are reaching your plan's usage quota and you want to prioritize some sources over others).
liveTailPatternstringnoFreeform text template for formatting Live tail output with columns wrapped in {column} brackets. Example: "PID: {message_json.pid} {level} {message}"
logsRetentionnumbernoData retention for logs in days. There might be additional charges for longer retention.
metricsRetentionnumbernoData retention for metrics in days. There might be additional charges for longer retention.
namestringnoThe name of this source.
platformstringnoThe platform of this source. This value can be set only when you're creating a new source. You can't update this value later. Valid values are: - apache2 - aws - awsCloudwatch - awsEcs - awsElb - awsFargate - azure - azureLogs - cloudflareLogpush - cloudflarePrometheusExporter - cloudflareWorker - datadogAgent - digitalocean - docker - dokku - dotnet - elasticsearch - erlang - fastly - filebeat - flights - fluentbit - fluentd - flyIo - gcp - go - googleCloudPubsub - haproxy - heroku - http - java - javascript - kubernetes - logstash - minio - mongodb - mysql - nginx - openTelemetry - php - postgresql - prometheus - prometheusScrape - python - rabbitmq - redis - render - rsyslog - ruby - syslog-ng - traefik - ubuntu - vector - vercelIntegration - winlogbeat
scrapeFrequencySecsnumbernoFor scrape platform types, how often to scrape the URLs.
scrapeRequestBasicAuthPasswordstringnoBasic auth password for scraping.
scrapeRequestBasicAuthUserstringnoBasic auth username for scraping.
scrapeRequestHeaders{ [key: string]: string }[]noAn array of request headers, each containing name and value fields.
scrapeUrlsstring[]noFor scrape platform types, the set of urls to scrape.
skipSslVerifybooleannoShould the scraper skip SSL certificate verification? Enable for endpoints with self-signed or invalid certificates.
sourceGroupIdnumbernoThe ID of the source group this source belongs to.
tableNamestringyesThe table name generated for this source.
teamIdstringyesThe team ID for this resource. Can be used with tableName in Query API.
teamNamestringnoUsed to specify the team the resource should be created in when using global tokens. You can't update this value later.
tokenstringyesThe token of this source. This token is used to identify and route the data you will send to Better Stack.
updatedAtstringyesThe time when this monitor group was updated.
vrlTransformationLogsstringnoVRL transformation applied to logs on Better Stack's servers during ingestion. Leave unset to keep the transformation unmanaged (reading back whatever is configured, including platform defaults); set to an empty string to remove it. Read more about VRL transformations.
vrlTransformationSpansstringnoVRL transformation applied to traces (spans) on Better Stack's servers during ingestion. Leave unset to keep the transformation unmanaged; set to an empty string to remove it. Read more about VRL transformations.

SourceCustomBucket (input)#

Input object SourceCustomBucket. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
accessKeyIdstringyesAccess key ID
endpointstringyesBucket endpoint including the bucket name, e.g. https://s3.us-east-1.amazonaws.com/my-bucket or https://my-bucket.s3.us-east-1.amazonaws.com.
keepDataAfterRetentionbooleannoWhether we should keep data in the bucket after the retention period.
namestringnoBucket name derived from endpoint. Deprecated - do not set this attribute.
secretAccessKeystringyesSecret access key

SourceCustomBucket (output)#

Output object SourceCustomBucket. Fields below belong to this object.

PropertyTypeAlways presentDescription
accessKeyIdstringyesAccess key ID
endpointstringyesBucket endpoint including the bucket name, e.g. https://s3.us-east-1.amazonaws.com/my-bucket or https://my-bucket.s3.us-east-1.amazonaws.com.
keepDataAfterRetentionbooleannoWhether we should keep data in the bucket after the retention period.
namestringyesBucket name derived from endpoint. Deprecated - do not set this attribute.
secretAccessKeystringyesSecret access key