Class: Google::Logging::V1::LoggingService::Service
- Inherits:
-
Object
- Object
- Google::Logging::V1::LoggingService::Service
- Includes:
- GRPC::GenericService
- Defined in:
- lib/google/logging/v1/logging_services_pb.rb
Overview
API Overview
The Logging service provides methods to manage (create/update/delete) logs, ingest and retrieve log entries within a log, and manage log sinks.
Data Model
The Logging service exposes the following resources:
-
Projects, named ‘/projects/`
These are Google Developers Console projects.
-
Project sinks, named as ‘/projects//sinks/`
These are additional destinations for the log entries written to a log. Log entries are written to each of the sinks in addition to the default built-in storage. Log entries are written to all of the matching sinks. Adding or removing a sink only affects log entries written after the operation on the sink completes.
-
Logs, named ‘/projects//logs/`
These are log resources associated with a given project. Logs whose name begins with a valid DNS name followed by a “/” are reserved for services that own the DNS name. For example, all logs that begin with ‘compute.googleapis.com/` are reserved for Google Compute Engine. Log names must be less than 512 characters long and can include the following characters:
upper- and lower-case alphanumeric characters: [A-Za-z0-9]
punctuation characters: slash, underscore, hyphen, period [/_-.]
Note that when assembling the full log resource name, slashes in the trailing part of the name must be URL-encoded. For example, the full resource name for the log ‘compute.googleapis.com/syslog` in the `myproject` project would be `/projects/myproject/logs/compute.googleapis.com%2Fsyslog`.
-
Log entries, named as ‘/projects//logs//entries`
These are individual log entries inside a log. NOTE: due to the potentially high traffic load for a log, the service does not assign resource names to individual log entries. The only way to retrieve log entries is to search through a log based on timestamp or other properties. All log entries in a log must have the same payload type.
-
Log sinks, named as ‘/projects//logs//sinks/*`
These are additional destinations for the log entries written to a log. Log entries are written to each of the sinks in addition to the default built-in storage. Log entries are written to all of the matching sinks. Adding or removing a sink only affects log entries written after the operation on the sink completes.
-
Log services, named ‘/projects/*/logServices`
These are cloud services that have ingested log entries for individual projects. Log entries may optionally be associated with a service at the time of ingestion. Log entries associated with a Google Cloud Platform service are indexed by labels specific to that service (see Service indexes below).
-
Log service sinks, named as ‘/projects//logServices//sinks/*`
These are additional destinations for the log entries that are associated with a service. Log entries are written to each of the enabled sinks in addition to the default built-in storage. Log entries are written to all of the matching sinks. Adding or removing a sink only affects log entries written after the operation on the sink completes.
-
Log service indexes, named ‘/projects//logServices//indexes`
These are descriptions of how the logging service indexes log entries associated with Google Cloud Platform services. Each index is a hierarchy of label values, which provides a guide as to how the log entries may be effectively filtered during retrieval. The corresponding label keys are associated with the log service resource. For example the App Engine service index is comprised of module and version identifiers, and one value might be “/myModule/myVersion/”. See the documentation for
- LogEntryMetadata.labels][google.logging.v1.LogEntryMetadata.labels
-
for
details about relevant label keys for existing services.
-
Log metrics, named as ‘/projects//metrics/`
These are metric filters associated with a given project. A metric filter counts log entries that match a user-specified filter, and exports the count as a monitoring metric.
Service for ingesting and querying logs.