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

  1. Select Data & integrations > Source Datasets. Some accounts show this list in the Source datasets tab of Add data.
  2. Find the source dataset where you expect the data to arrive.
  3. Review Health, Last received, Bytes/hour, and Observations/hour to check for errors or missing ingest activity.
  4. 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 Datastreams

If 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.

SymptomWhat to check
401 UnauthorizedUse 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 datasetsCheck the account, package name, and compatible destination type. On management API calls, also check caller permissions and feature availability.
unable to route dataInspect 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 datasetCheck for a legacy token binding, associated-token route, or package header before investigating user-defined rules.
User-defined rule has no effectCheck its enabled state and priority. Managed routes run first. For content routing, use an unassociated standalone token without a package header.
Successful request, missing recordsCheck 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 errorCheck the endpoint, payload schema, and response details. OTLP JSON is not arbitrary JSON.
413 or 415Check the endpoint's size limits, Content-Type, and Content-Encoding.
429 Too Many RequestsUse 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:

  1. Open Datasets from the navigation menu, search for System, and select the System dataset.
  2. Type ingest_error in the filter bar and select OBSERVATION_KIND to apply OBSERVATION_KIND = ingest_error.
  3. 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:

  1. Select the FIELDS column header and choose Extract from JSON.
  2. Select error_type and choose Apply. Observe by Snowflake opens a Worksheet with the extracted column.
  3. 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 typeDescription
decode_errorObserve 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_bodyThe ingest HTTP request had no content.
internal_health_errorThe ingest HTTP request was not authorized. Check that your applications are using the correct credentials
method_not_allowedThe 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_foundThe ingest HTTP request was valid, but no observations were found.
observations_too_largeA submitted observation was over the size limit. Try to reduce the size of individual observations your applications are sending.
path_not_foundThe ingest HTTP request was directed to an unsupported path. Check the HTTP request path.
poller_errorThe poller may not have the correct permissions or it attempted to fetch records from a non-existing endpoint.
read_errorObserve by Snowflake was unable to read the ingest HTTP request content.
too_many_requestsToo many requests sent at the same time.
unknown_observation_decode_errorAn unknown error occurred during ingest. Contact your Observe by Snowflake data engineer for assistance. See Get help .
unsupported_content_encodingThe 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_typeThe 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

You 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 withLambdaVersion=v1.0.20221214 or higher.
  • Using the AWS CLI, update the existing CloudFormation stack with LambdaVersion=v1.0.20221214 or 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_version parameter in the observe_collection module:
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
  }
}

Did this page help you?