Retrieving the Data Source
This data source can be retrieved by one of ID or name.Retrieve by ID
To retrieve by ID, fill in only theid field:
Retrieve by Name
To retrieve by name, fill in only thename and parent_id fields:
Schema
Optional
id(String) Identifier for the resource, unique for its resource type.name(String) Human-readable name for the resource.parent_id(String) Identifier of the parent resource to which the resource belongs.
Read-Only
-
created_at(String) : Timestamp indicating when the resource was created. A string representing a timestamp in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZorYYYY-MM-DDTHH:MM:SS.SSS±HH:MM -
disabled(Boolean) If set, logging stream would not be active and its effect on routing logs would not be applied. -
filter(Attributes) filter controls which logs are part of the stream. (see below for nested schema) -
format(Attributes) format defines how log entries are written to the sink. (see below for nested schema) -
labels(Map of String) Labels associated with the resource. -
metadata(Attributes) :Inner value description
Common resource metadata. (see below for nested schema) -
resource_version(Number) : Version of the resource for safe concurrent modifications and consistent reads. Positive and monotonically increases on each resource spec change (but not on each change of the resource’s container(s) or status). Service allows zero value or current. -
sink(Attributes) sink is a destination to write logs to. (see below for nested schema) -
status(Attributes) (see below for nested schema) -
updated_at(String) : Timestamp indicating when the resource was last updated. A string representing a timestamp in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZorYYYY-MM-DDTHH:MM:SS.SSS±HH:MM
Nested Schema for filter
Read-Only:
-
match_expression(String) : LogQL match expression selecting log entries to export. Example:{app="myapp"} |= "error"selects logs from app “myapp” containing the word “error”.
Nested Schema for format
Read-Only:
-
log_attributes_mode(Attributes) : Enables structured log mode output format (timestamp, level, region, message, attributes map).Inner value description
configuration for structured log output format. Cannot be set alongside message_json_mode. (see below for nested schema) -
message_json_mode(Attributes) : Enables “message-as-json” output format.Inner value description
configuration for “message-as-json” log output format. Cannot be set alongside log_attributes_mode. (see below for nested schema)
Nested Schema for format.log_attributes_mode
Read-Only:
attributes(List of String) list of attributes to write to log stream, empty means all attributes.
Nested Schema for format.message_json_mode
Nested Schema for metadata
Nested Schema for sink
Read-Only:
object_storage(Attributes) Destination object storage where exported logs are written. (see below for nested schema)
Nested Schema for sink.object_storage
Read-Only:
-
by_name(Attributes) : Destination bucket. Cannot be set alongside id. (see below for nested schema) -
id(String) : ID of the destination Object Storage bucket. Cannot be set alongside by_name. -
object_prefix(String) Key prefix under which exported objects are written. Defaults tologs/.
Nested Schema for sink.object_storage.by_name
Read-Only:
-
name(String) Name of the destination Object Storage bucket. -
parent_id(String) : Project ID that owns the bucket. Required only when the bucket lives in a different project than--parent-id; defaults to--parent-idotherwise.
Nested Schema for status
Read-Only:
-
error_since(String) : time the stream entered state = ERROR; unset in other states A string representing a timestamp in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZorYYYY-MM-DDTHH:MM:SS.SSS±HH:MM -
last_error_message(String) last error message when state = ERROR -
object_storage_bucket_id(String) ID of the destination Object Storage bucket. The service resolves it fromspec.sink.object_storageon create. -
state(String) :Supported values
State is the current state of the stream. Possible values:UNKNOWNACTIVEDISABLEDERROR