Collection projects.logs.sinks

Resource LogSink

Describes where log entries are written outside of Stackdriver Logging.

JSON representation
{
  "name": string,
  "destination": string,
  "filter": string,
  "errors": [
    {
      object(LogError)
    }
  ],
}
Field name Type Description
name string The client-assigned name of this sink. For example, "my-syslog-sink". The name must be unique among the sinks of a similar kind in the project.
destination string The resource name of the destination. Stackdriver Logging writes designated log entries to this destination. For example, "storage.googleapis.com/my-output-bucket".
filter string An advanced logs filter. If present, only log entries matching the filter are written. Only project sinks use this field; log sinks and log service sinks must not include a filter.
errors[] object(LogError) Output only. If any errors occur when invoking a sink method, then this field contains descriptions of the errors.

Methods

Method Description
create Creates a log sink.
delete Deletes a log sink.
get Gets a log sink.
list Lists log sinks associated with a log.
update Updates a log sink.