What is the correct logging CLI syntax for the log search with a query for REST call responses having status code 400, within the web Log Group and the application Log?
Correct Answer: D
Explanation
The correct logging CLI syntax for the log search with a query for REST call responses having status code
400, within the web Log Group and the application Log is oci logging-search search-logs --search-query
'search
"ocidl.compartment.ocl...aaaaaaaawqegmjifhni77bqm625cxioavoq775jckfn2syxqtmglabcccdxyz/web/applicatio I where data.statusCode = 400'-time-start 2022-02-06T00:00:002 --time-end 2022-02-07T00:00:002. This syntax will search for log records that match the following criteria:
* The log records belong to the compartment with OCID
ocidl.compartment.ocl...aaaaaaaawqegmjifhni77bqm625cxioavoq775jckfn2syxqtmglabcccdxyz
* The log records belong to the web Log Group and the application Log
* The log records have a field called data.statusCode with a value of 400
* The log records are within the time range from 2022-02-06T00:00:002 to 2022-02-07T00:00:002