URL parameters
ID of the source you want to update
Body parameters
Source name
Enable or disable ingesting for this source
The ID of the source group this source belongs to
Live tail message format with columns wrapped in {column} brackets.
Example: "PID: {message_json.pid} {level} {message}".
For details, see Live tail docs.
Data retention for logs in days. There might be additional charges for longer retention.
Data retention for metrics in days. There might be additional charges for longer retention.
The VRL code applied to logs during ingestion. Send an empty string to remove the transformation, or null to reset it to the platform default. Read more about VRL transformations.
The VRL code applied to traces (spans) during ingestion. Send an empty string to remove the transformation. Read more about VRL transformations.
Metric names to mark as spam. Listed metrics are rejected during ingestion and aren't billed.
URLs to scrape by prometheus_scrape platform and similar.
How often to scrape the URLs for prometheus_scrape platform and similar. Permitted values are 15, 30, 60, 120 or 300.
An array of request headers for prometheus_scrape platform and similar, with each object containing name and value fields.
Basic auth username for prometheus_scrape platform and similar.
Basic auth password for prometheus_scrape platform and similar.
Whether to skip SSL/TLS certificate verification for prometheus_scrape platform and similar. Set to true to disable verification.
Only for aws sources. Whether Better Stack automatically subscribes newly discovered Amazon CloudWatch log groups for ingestion. Defaults to true. Set to false to subscribe log groups yourself.
Rotates the key pair of the custom bucket the source already uses. Send only access_key_id and secret_access_key. We verify the new pair against the bucket first; if that fails, the whole request is rejected with a 422 and nothing is changed. A bucket shared by several sources is rotated for all of them. Send the new pair before deactivating the old one to rotate without downtime. A custom bucket can only be added when creating a source.