REST Resource: projects.locations.instances.logTypes.logs

Resource: Log

Represents a telemetry log.

JSON representation
{
  "name": string,
  "data": string,
  "log_entry_time": string,
  "collection_time": string,
  "environment_namespace": string,
  "labels": {
    string: {
      object (LogLabel)
    },
    ...
  },
  "additionals": {
    object
  }
}
Fields
name

string

Output only. The resource name of this log. Format: projects/{project}/locations/{region}/instances/{instance}/logTypes/{log_type}/logs/{log}

data

string (bytes format)

Required. Raw data for the log entry.

A base64-encoded string.

log_entry_time

string (Timestamp format)

Required. Timestamp of the log entry.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

collection_time

string (Timestamp format)

Required. The time at which the log entry was collected. Must be after the log_entry_time.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

environment_namespace

string

Optional. The user-configured environment namespace to identify the data domain the logs originated from. This namespace will be used as a tag to identify the appropriate data domain for indexing and enrichment functionality.

labels

map (key: string, value: object (LogLabel))

Optional. The user-configured custom metadata labels.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

additionals

object (Struct format)

Optional. Metadata in JSON format.

LogLabel

Label for a user configured custom metadata key.

JSON representation
{
  "value": string,
  "rbac_enabled": boolean
}
Fields
value

string

The value of the label.

rbac_enabled

boolean

Indicates whether this label can be used for Data RBAC.

Methods

export

Export log telemetry.

get

Gets a Log.

import

Import log telemetry.

list

Lists all Logs.