Question 1
An OCI administrator wants to retrieve logs using the following query in OCI Logging Search: search "compartmentOcid/logGroupOcid". What will this query return?
An OCI Logging search expression begins by identifying the log streams that form the search scope. Oracle defines the stream path as a compartment OCID, optionally followed by a log group name or OCID and then an optional log object name or OCID. Therefore, search 'compartmentOcid/logGroupOcid' selects the logs contained in that particular log group within the specified compartment. Supplying only the compartment OCID would broaden the scope to the compartment, subject to the requester's permissions. Adding a third path component would restrict the search to one specific log object. The expression does not automatically search every compartment or log group in the tenancy. Consequently, option C correctly describes the scope established by the two-component compartment and log-group path. Oracle documentation