steampipe plugin install oci

Table: oci_logging_log_group - Query OCI Logging Log Groups using SQL

Oracle Cloud Infrastructure (OCI) Logging Log Group is a service that enables you to manage, store, and search logs of all your system, platform, and custom application logs in a centralized location. The Log Group is a resource that represents a group of log streams. It provides you with the ability to categorize and manage related logs together in a structured way.

Table Usage Guide

The oci_logging_log_group table provides insights into Log Groups within Oracle Cloud Infrastructure (OCI) Logging. As a system administrator, you can explore Log Group-specific details through this table, including configurations, associated metadata, and lifecycle states. Utilize it to manage and organize your logs, such as those related to specific applications or environments, and to facilitate efficient log analysis and troubleshooting.

Examples

Basic info

Explore the lifecycle state and creation time of different log groups in Oracle Cloud Infrastructure's logging service. This can help you manage and monitor your resources effectively.

select
id as log_group_id,
display_name,
lifecycle_state,
time_created
from
oci_logging_log_group;
select
id as log_group_id,
display_name,
lifecycle_state,
time_created
from
oci_logging_log_group;

List inactive log groups

Explore which log groups are inactive in your OCI logging service. This can be useful for identifying and managing unused resources.

select
id as log_group_id,
display_name,
lifecycle_state as state,
time_created
from
oci_logging_log_group
where
lifecycle_state = 'INACTIVE';
select
id as log_group_id,
display_name,
lifecycle_state as state,
time_created
from
oci_logging_log_group
where
lifecycle_state = 'INACTIVE';

Schema for oci_logging_log_group

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
compartment_idtext=The OCID of the compartment in Tenant in which the resource is located.
defined_tagsjsonbDefined tags for resource. Defined tags are set up in your tenancy by an administrator. Only users granted permission to work with the defined tags can apply them to resources.
descriptiontextDescription for this log group.
display_nametext=A user-friendly name.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtext=The OCID of the log group.
lifecycle_statetextThe log group object state.
regiontextThe OCI region in which the resource is located.
tagsjsonbA map of tags for the resource.
tenant_idtextThe OCID of the Tenant in which the resource is located.
tenant_nametextThe name of the Tenant in which the resource is located.
time_createdtimestamp with time zoneTime the resource was created.
time_last_modifiedtimestamp with time zoneTime the resource was last modified.
titletextTitle of the resource.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- oci

You can pass the configuration to the command with the --config argument:

steampipe_export_oci --config '<your_config>' oci_logging_log_group