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_createdfrom oci_logging_log_group;
select id as log_group_id, display_name, lifecycle_state, time_createdfrom 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_createdfrom oci_logging_log_groupwhere lifecycle_state = 'INACTIVE';
select id as log_group_id, display_name, lifecycle_state as state, time_createdfrom oci_logging_log_groupwhere lifecycle_state = 'INACTIVE';
Schema for oci_logging_log_group
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
compartment_id | text | = | The OCID of the compartment in Tenant in which the resource is located. |
defined_tags | jsonb | Defined 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. | |
description | text | Description for this log group. | |
display_name | text | = | A user-friendly name. |
freeform_tags | jsonb | Free-form tags for resource. This tags can be applied by any user with permissions on the resource. | |
id | text | = | The OCID of the log group. |
lifecycle_state | text | The log group object state. | |
region | text | The OCI region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
tags | jsonb | A map of tags for the resource. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The OCID of the Tenant in which the resource is located. |
tenant_name | text | The name of the Tenant in which the resource is located. | |
time_created | timestamp with time zone | Time the resource was created. | |
time_last_modified | timestamp with time zone | Time the resource was last modified. | |
title | text | Title 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