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)
    }
  ],

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "summaryFieldStart": integer,
  "summaryFieldEnd": integer
  // End of mutually exclusive fields.
}
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.

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. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
summaryFieldStart

integer

Characters will be counted from the start of the string.

summaryFieldEnd

integer

Characters will be counted from the end of the string.

End of mutually exclusive fields.

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.