Troubleshoot data ingestion
Use source dataset health and the System dataset to diagnose issues with incoming data. The System dataset records activity in your workspace, including ingestion errors.
Check ingest activity
- Select Data & integrations > Source Datasets. Some accounts show this list in the Source datasets tab of Add data.
- Find the source dataset where you expect the data to arrive.
- Review Health, Last received, Bytes/hour, and Observations/hour to check for errors or missing ingest activity.
- Select the dataset name to inspect its data. To investigate ingestion errors, open the System dataset as described below.
See Source Datasets for more about the list and its controls.
Accounts using DatastreamsIf your account still uses Datastreams, select Data & integrations > Datastreams and review the Health column. To inspect errors, find System, hover over its row, and select Open dataset. Continue with the error filter below. See Datastreams for the legacy workflow.
Diagnose missing or misrouted data
Check the client's HTTP status and response body before changing its configuration. A successful authentication check at the collection origin does not verify payload ingestion or destination selection.
| Symptom | What to check |
|---|---|
401 Unauthorized | Use the complete ingest credential, not the token ID alone or a management API token. Check the collection hostname and token state. |
403 Forbidden or Failed to resolve source datasets | Check the account, package name, and compatible destination type. On management API calls, also check caller permissions and feature availability. |
unable to route data | Inspect the routes for the submitted data type. Confirm that compatible destinations and a default route exist. Read the error details for expression failures. |
| Successful request, wrong dataset | Check for a legacy token binding, associated-token route, or package header before investigating user-defined rules. |
| User-defined rule has no effect | Check its enabled state and priority. Managed routes run first. For content routing, use an unassociated standalone token without a package header. |
| Successful request, missing records | Check destination drop filters, the actual default destination, and the dataset time range, including the event timestamp. Verify with a unique test marker. |
400 or a decode error | Check the endpoint, payload schema, and response details. OTLP JSON is not arbitrary JSON. |
413 or 415 | Check the endpoint's size limits, Content-Type, and Content-Encoding. |
429 Too Many Requests | Use bounded retries with backoff in the client. Check with Observe by Snowflake support if your account is being rate-limited. |
Compare token Last received and activity with the expected dataset's activity. This helps distinguish a client credential problem from a destination-selection problem. Counters alone are not proof of correct delivery: find a recognizable test record in the intended dataset.
Do not remove a package header or change a shared default route just to make an error disappear. These changes can redirect data. Follow the routing decision guide and token rotation procedure.
Check client and collector logs as well as System data; do not assume every rejected request produces a visible System record. When requesting help, include the timestamp, endpoint path, response status, non-secret token ID, and expected destination. Remove authorization headers and credentials from logs before sharing them.
Find ingest errors
You can open the System dataset directly without using either ingestion management page:
- Open Datasets from the navigation menu, search for System, and select the System dataset.
- Type
ingest_errorin the filter bar and selectOBSERVATION_KINDto applyOBSERVATION_KIND = ingest_error. - Select a time range that includes the failed ingestion request.
Types of data ingestion errors
The System dataset's FIELDS column contains details about each error. To filter by error type:
- Select the FIELDS column header and choose Extract from JSON.
- Select
error_typeand choose Apply. Observe by Snowflake opens a Worksheet with the extracted column. - Select the error_type column header and filter to the values you want to review.
You can extract additional fields, save the Worksheet, or use it to create a monitor or dashboard.
The error_type may be one of the following:
| Error type | Description |
|---|---|
| decode_error | Observe by Snowflake failed to decode your observations. Check the ingest error message for details. Check that your application(s) are emitting observations in the correct encoded format. |
| empty_body | The ingest HTTP request had no content. |
| internal_health_error | The ingest HTTP request was not authorized. Check that your applications are using the correct credentials |
| method_not_allowed | The ingest HTTP request method (POST, GET, etc.) is not supported. Unless specifically stated in the endpoint documentation, the only method supported by Observe by Snowflake endpoints is the POST method. |
| no_observations_found | The ingest HTTP request was valid, but no observations were found. |
| observations_too_large | A submitted observation was over the size limit. Try to reduce the size of individual observations your applications are sending. |
| path_not_found | The ingest HTTP request was directed to an unsupported path. Check the HTTP request path. |
| poller_error | The poller may not have the correct permissions or it attempted to fetch records from a non-existing endpoint. |
| read_error | Observe by Snowflake was unable to read the ingest HTTP request content. |
| too_many_requests | Too many requests sent at the same time. |
| unknown_observation_decode_error | An unknown error occurred during ingest. Contact your Observe by Snowflake data engineer for assistance. See Get help . |
| unsupported_content_encoding | The Observe by Snowflake endpoint does not support the ingest HTTP request Content-Encoding field. For example, the Prometheus endpoint only supports a Content-Encoding type of snappy. |
| unsupported_media_type | The ingest HTTP request Content-Type field is not supported by the Observe by Snowflake endpoint. For example, sending an HTTP request with a Content-Type of application/x-protobuf to the Observe by Snowflake HTTP endpoint results in this error. |
Resolve a decode_error
decode_errorYou may encounter a decode_error while using the AWS Integration app.
{
"error_type":"decode_error",
"http_response_code":400,
"message":"unable to decode observations",
"source_datastream_id":0,
"source_datastream_token_id":"",
"source_http_request":{
"headers":{
"content-encoding":"gzip",
"content-type":"application/json"
},
"id":"12a34b5c67d90e1f23456g78h9ijk0a1",
"path":"/v1/http/aws/s3?bucket=observeo2-bucket-lce1o41vi8g&etag=%22c4842d2ed7207e8f80addcfbaa912b32%22&invokedFunctionArn=arn%3Aaws%3Alambda%3Aus-west-2%3A158067661102%3Afunction%3AObserveO2-lambda-MNEDH4OIX2HF&key=AWSLogs%2F158067661102%2FConfig%2Fus-west-2%2F2023%2F1%2F25%2FOversizedChangeNotification%2FAWS%3A%3ASSM%3A%3AManagedInstanceInventory%2Fi-0534eb8cc54ac76c7%2F158067661102_Config_us-west-2_ChangeNotification_AWS%3A%3ASSM%3A%3AManagedInstanceInventory_i-0534eb8cc54ac76c7_20230125T191305Z_1674673985309.json.gz&requestId=a0c7761b-38a0-48c4-8adf-0ecea29e297a",
"start_time":1674674049907925064
}
}
Consider upgrading your Lambda function to v1.0.20221214 or higher using one of the following methods:
- Using the AWS Console, update the existing CloudFormation stack with
LambdaVersion=v1.0.20221214or higher.

- Using the AWS CLI, update the existing CloudFormation stack with
LambdaVersion=v1.0.20221214or higher.
aws cloudformation update-stack --stack-name ObserveLambda --use-previous-template \
--capabilities CAPABILITY_NAMED_IAM \
--parameters ParameterKey=ObserveCustomer,ParameterValue="${OBSERVE_CUSTOMER?}" ParameterKey=ObserveToken,ParameterValue="${OBSERVE_TOKEN?}" ParameterKey=LambdaVersion,ParameterValue="v1.0.20221214"
- Using Terraform, override the
lambda_versionparameter in theobserve_collectionmodule:
module "observe_collection" {
source = "github.com/observeinc/terraform-aws-collection"
observe_customer = "${OBSERVE_CUSTOMER}"
observe_token = "${OBSERVE_TOKEN}"
lambda_version = "v1.0.20221214"
}
Resolve OpenTelemetry errors
You may encounter a decode error with the following message when sending OTEL metrics. This means that the metric you are sending does not contain a value for some data points. Either include the value, or make sure that the flag DATA_POINT_FLAGS_NO_RECORDED_VALUE is set.
{
"error_type":"decode_error",
"http_response_code":400,
"message":"opentelemetry number_data_point value not set",
"source_datastream_id":0,
"source_datastream_token_id":"",
"source_http_request":{
"headers":{
"content-encoding":"gzip",
"content-type":"application/x-protobuf"
},
"id":"cf6a3b0a61e91ghz91wx3g02h4mnp0b3",
"path":"/v2/otel/v1/metrics",
"start_time":1673975028209921474
}
}
Additional error code examples
method_not_allowed
If you encounter the error, method_not_allowed, use POST as the method. Observe by Snowflake does not support GET and DELETE. Or use a different path that supports your selected method. Using the wrong path returns a NOT FOUND error.
{
"error_type": "method_not_allowed",
"http_response_code": 405,
"message": "Method GET is not allowed",
"source_datastream_id": 0,
"source_datastream_token_id": "",
"source_http_request": {
"headers": {},
"id": "cd18bd01990b79837ee6395c0ce81165",
"path": "/v1/http/",
"start_time": 1671143478484717800
}
observation_too_large
If the error observation_too_large occurs, consider reducing a record size.
{
"error_type": "observation_too_large",
"http_response_code": 413,
"message": "observation of size 5233950 over limit of 4194304",
"source_datastream_id": 41023194,
"source_datastream_token_id": "ds1aTyFI2f8V5IkqXiiY",
"source_http_request": {
"headers": {
"content-encoding": "gzip",
"content-type": "application/x-protobuf"
},
"id": "204345502211d4eea054e5d09fbc92ca",
"path": "/v1/otel/v1/traces",
"start_time": 1673292866920775400
}
}
unsupported_media_type
If the error unsupported_media_type occurs, double-check the media type in your ingest request to Observe by Snowflake.
{
"error_type": "unsupported_media_type",
"http_response_code": 415,
"message": "could not parse media type ",
"source_datastream_id": 41023194,
"source_datastream_token_id": "ds1qXE6GevEyFadhaEXR",
"source_http_request": {
"headers": {
"content-type": ""
},
"id": "d42b01b1413756e7e78b63780607a571",
"path": "/v1/http/",
"start_time": 1671143616712639200
}
}Updated about 2 months ago