Using the CLI
Details on Oracle Cloud Infrastructure Logging search CLI examples.
For more information on installing the CLI, see Quickstart, and logging-search for command documentation.
Submit a query to search logs
oci logging-search search-logs --search-query --time-end --time-start
To search within a compartment
oci logging-search search-logs --search-query 'search "ocid1.tenancy.oc1..<unique_ID>"' --time-start 2021-06-22T00:30:00Z --time-end 2021-06-22T00:35:00Z