LoggingQuery

Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.

In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results.

JSON representation
{
  "filter": string,
  "summaryFields": [
    {
      object (SummaryField)
    }
  ],

  // Union field summary_field_width can be only one of the following:
  "summaryFieldStart": integer,
  "summaryFieldEnd": integer
  // End of list of possible types for union field summary_field_width.
}
Fields
filter

string

Required. An advanced query using the Logging Query Language. The maximum length of the filter is 20000 characters.

summaryFields[]

object (SummaryField)

Optional. The set of summary fields to display for this saved query.

Union field summary_field_width. The user's setting for number of characters to display for each summary field. In the Logs Explorer page of Google Cloud console, negative values are ignored and the default (0) means there is no truncation. summary_field_width can be only one of the following:
summaryFieldStart

integer

Characters will be counted from the start of the string.

summaryFieldEnd

integer

Characters will be counted from the end of the string.

SummaryField

A field from the LogEntry that is added to the summary line for a query in the Logs Explorer.

JSON representation
{
  "field": string
}
Fields
field

string

Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.