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.
All Oracle Cloud Infrastructure Logging APIs support both IPv4 and IPv6 connections. While IPV4 is supported by default, you need to enable IPv6 support. To enable IPv6, pass the -\-enable-dual-stack option.
Submit a query to search logs
oci logging-search search-logs --search-query --time-end --time-startTo 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