URL parameters
The ID of the source you want to get
Headers
Bearer $TOKEN
Get a single source by its ID.
URL parameters
The ID of the source you want to get
Headers
Bearer $TOKEN
Returns the source.
Response body
Your team doesn't have a source with this ID
Response body
Response attributes
The ID of the source.
The resource type, always source.
The ID of the source group the source belongs to, or null when the source isn't in a group.
The ID of the team that owns the source.
The name of the team that owns the source.
The name of the source.
The platform of the source, for example nginx.
The table name used to query the source's data.
The source token that authenticates data sent to the source.
Whether ingesting is paused for the source.
The host to send the source's data to, or null for the prometheus_scrape and cloudflare_prometheus_exporter platforms, where Better Stack scrapes the data instead.
When the source was created, as an ISO 8601 date-time in UTC.
When the source was last updated, as an ISO 8601 date-time in UTC.
Whether Better Stack automatically subscribes newly discovered Amazon CloudWatch log groups, present only for aws sources.
Data retention for logs in days.
Data retention for metrics in days.
The live tail message format with columns wrapped in {column} brackets, or null when the source uses the default format.
The URLs Better Stack scrapes, present only for the prometheus_scrape and cloudflare_prometheus_exporter platforms.
How often the URLs are scraped in seconds, one of 15, 30, 60, 120 or 300, present only for the prometheus_scrape and cloudflare_prometheus_exporter platforms.
Request headers sent with each scrape as objects with name and value fields, present only for the prometheus_scrape and cloudflare_prometheus_exporter platforms.
The basic auth username for scraping or null when none is set, present only for the prometheus_scrape and cloudflare_prometheus_exporter platforms.
The basic auth password for scraping or null when none is set, present only for the prometheus_scrape and cloudflare_prometheus_exporter platforms and left out for a source shared with your team by another team.
Whether SSL/TLS certificate verification is skipped when scraping, present only for the prometheus_scrape and cloudflare_prometheus_exporter platforms.
The storage region of the source's data, for example eu-nbg-2.
The custom S3-compatible bucket that hosts the source's data, or null when the source uses Better Stack storage.
The name of the bucket.
The full URL endpoint of the bucket.
The access key ID used to access the bucket, whose secret access key is never returned.
Whether data stays in the bucket after the retention period.
The VRL code applied to logs during ingestion, including a platform default, or an empty string when there's none.
The VRL code applied to traces during ingestion, or an empty string when there's none.
Metric names marked as spam, which are rejected during ingestion and aren't billed.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.