Troubleshoot machine learning with CPS
Use this section to diagnose and resolve common problems with anomaly detection datafeeds that search across linked projects on Elastic Cloud Serverless. These topics apply when CPS-enabled ML datafeeds are available for your project.
Tip
If you can't find your issue here, explore the other troubleshooting topics or contact us.
Gather context from the following sources before narrowing down a CPS datafeed issue:
- ML job Messages in Kibana — Open Machine Learning → Anomaly Detection, select the job, and review the Messages tab for audit entries and warnings about linked projects, credentials, or scope changes.
.ml-notifications-*and.ml-annotations-*indices — Search these indices for the job or datafeed ID to find historical audit messages and scope-change annotations.GET _ml/datafeeds/{id}/_stats— Inspectremote_cluster_statsfor per-project availability, skip counts, and cross-project search health over recent extraction cycles.GET _ml/datafeeds/{id}— Confirm the effectiveproject_routingexpression and whether the datafeed uses qualified index references.
- Linked project skipped or unavailable
- Search scope changed
project_routingmatches no project- Stale project reference
- Cloud token mint failure
- Cloud token runtime failure
- Field mapping mismatch across projects
- Schema drift in a linked project
- Search scope too broad
- Bulk migration partial failure
- Clone inherits unintended
project_routing
project_routing value |
Effective search scope |
|---|---|
Empty or omitted (null) |
Flat world — searches the origin project and all linked projects |
_origin or _alias:_origin |
Local only — searches the origin project |
_alias:prod-* (or other tag expression) |
Subset — searches only linked projects whose tags match the expression |
Qualified index (project:index) |
Specific project — searches the named project and index |
For syntax details and examples, refer to Project routing in CPS.
- Cross-project search — Overview of cross-project search concepts and prerequisites.
- Project routing in CPS — How to limit CPS queries to specific linked projects.
- Run a job — Create, start, and manage anomaly detection jobs and datafeeds.
Contact Elastic support when:
- A linked project or region appears unavailable across multiple jobs and you have confirmed project linking in Elastic Cloud.
- The same datafeed fails repeatedly after you apply the fixes in these topics.
- The origin project reports memory pressure or out-of-memory errors while CPS datafeeds are running, and narrowing
project_routingdoes not relieve the symptoms.