Log

Represents a telemetry log.

JSON representation
{
  "name": string,
  "data": string,
  "logEntryTime": string,
  "collectionTime": string,
  "environmentNamespace": string,
  "labels": {
    string: {
      object (LogLabel)
    },
    ...
  },
  "additionals": {
    object
  },
  "timeZone": string
}
Fields
name

string

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

data

string (bytes format)

Required. Raw data for the log entry.

A base64-encoded string.

logEntryTime

string (Timestamp format)

Required. Timestamp of the log entry.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

collectionTime

string (Timestamp format)

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

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

environmentNamespace

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.

timeZone

string

Optional. Location for the log entry, given as the name of a file in the IANA time zone database. This is used to determine the offset from UTC for the log entry data. If not supplied, times in the log entry data are assumed to be UTC. Ex: "America/New_York" See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

LogLabel

Label for a user configured custom metadata key.

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

string

The value of the label.

rbacEnabled

boolean

Indicates whether this label can be used for Data RBAC.