My Oracle Support Banner

OCI - Create Scheduled Task In Logging Analytics Service Fails - Invalid value for savedSearchId (Doc ID 2786521.1)

Last updated on MARCH 01, 2022

Applies to:

OCI Logging Analytics Service - Version N/A to N/A
Information in this document applies to any platform.


In OCI Console, trying to create a scheduled task in Logging Analytics Service fails both from Console and CLI method.

From Console following error is reported:
ERROR: Failed to create Scheduled Task "<Task_Name>". Invalid value for savedSearchId.

From Command Line following error is reported:

oci log-analytics scheduled-task create-standard-task -ns <Namespace> --task-type SAVED_SEARCH -c <Compartment> --schedules "[{\"type\":\"FIXED_FREQUENCY\",\"recurringInterval\":\"PT5M\"}]" --action "{\"type\":\"STREAM\", \"savedSearchId\":\"1\",\"metricExtraction\":{\"compartmentId\":\"<Compartment>\", \"metricName\":\"<Metric_Name>\",\"namespace\":\"<Namespace>\"}}"
"code": "InvalidParameter",
"message": "Invalid value for savedSearchId.",
"opc-request-id": "<Request ID>",
"status": 400


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.