Update documentation

This commit is contained in:
Sebastian Thiel
2022-03-08 15:36:16 +08:00
parent b84384c010
commit a20241b241
10471 changed files with 1934132 additions and 64947 deletions

View File

@@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sinks Create - Logging v2.0.4+20210325</title>
<title>Sinks Create - Logging v3.0.0+20220225</title>
@@ -34,7 +34,7 @@
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-nav-search">
<a href=".." class="icon icon-home"> Logging v2.0.4+20210325</a>
<a href=".." class="icon icon-home"> Logging v3.0.0+20220225</a>
</div>
@@ -79,6 +79,16 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_get-cmek-settings">Get Cmek Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_get-settings">Get Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_locations-buckets-create">Locations Buckets Create</a>
@@ -134,6 +144,16 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_locations-operations-cancel">Locations Operations Cancel</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_locations-operations-list">Locations Operations List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_logs-delete">Logs Delete</a>
@@ -144,6 +164,11 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_operations-get">Operations Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../billing-accounts_sinks-create">Sinks Create</a>
@@ -180,6 +205,11 @@
<span>Entries</span>
<li class="toctree-l1 ">
<a class="" href="../entries_copy">Copy</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../entries_list">List</a>
@@ -257,6 +287,16 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_get-cmek-settings">Get Cmek Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_get-settings">Get Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_locations-buckets-create">Locations Buckets Create</a>
@@ -322,6 +362,21 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_locations-operations-cancel">Locations Operations Cancel</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_locations-operations-get">Locations Operations Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_locations-operations-list">Locations Operations List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_logs-delete">Logs Delete</a>
@@ -386,6 +441,11 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../folders_update-settings">Update Settings</a>
</li>
@@ -457,6 +517,21 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../locations_operations-cancel">Operations Cancel</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../locations_operations-get">Operations Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../locations_operations-list">Operations List</a>
</li>
@@ -484,11 +559,21 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../methods_get-settings">Get Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../methods_update-cmek-settings">Update Cmek Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../methods_update-settings">Update Settings</a>
</li>
@@ -536,6 +621,11 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../organizations_get-settings">Get Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../organizations_locations-buckets-create">Locations Buckets Create</a>
@@ -601,6 +691,21 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../organizations_locations-operations-cancel">Locations Operations Cancel</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../organizations_locations-operations-get">Locations Operations Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../organizations_locations-operations-list">Locations Operations List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../organizations_logs-delete">Logs Delete</a>
@@ -646,6 +751,11 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../organizations_update-settings">Update Settings</a>
</li>
@@ -677,6 +787,16 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../projects_get-cmek-settings">Get Cmek Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../projects_get-settings">Get Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../projects_locations-buckets-create">Locations Buckets Create</a>
@@ -742,6 +862,21 @@
</li>
<li class="toctree-l1 ">
<a class="" href="../projects_locations-operations-cancel">Locations Operations Cancel</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../projects_locations-operations-get">Locations Operations Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../projects_locations-operations-list">Locations Operations List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../projects_logs-delete">Logs Delete</a>
@@ -886,7 +1021,7 @@ You can set the scope for this method like this: <code>logging2 --scope &lt;scop
<h1 id="required-scalar-argument">Required Scalar Argument</h1>
<ul>
<li><strong>&lt;parent&gt;</strong> <em>(string)</em><ul>
<li>Required. The resource in which to create the sink: &#34;projects/[PROJECT_ID]&#34; &#34;organizations/[ORGANIZATION_ID]&#34; &#34;billingAccounts/[BILLING_ACCOUNT_ID]&#34; &#34;folders/[FOLDER_ID]&#34; Examples: &#34;projects/my-logging-project&#34;, &#34;organizations/123456789&#34;.</li>
<li>Required. The resource in which to create the sink: &#34;projects/[PROJECT_ID]&#34; &#34;organizations/[ORGANIZATION_ID]&#34; &#34;billingAccounts/[BILLING_ACCOUNT_ID]&#34; &#34;folders/[FOLDER_ID]&#34; For examples:&#34;projects/my-project&#34; &#34;organizations/123456789&#34;</li>
</ul>
</li>
</ul>
@@ -914,55 +1049,55 @@ In the latter case it is advised to set the field-cursor to the data-structure's
<p>can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.</p>
<ul>
<li><code>-r .bigquery-options use-partitioned-tables=true</code><ul>
<li>Optional. Whether to use BigQuery&#39;s partition tables (https://cloud.google.com/bigquery/docs/partitioned-tables). By default, Logging creates dated tables based on the log entries&#39; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.</li>
<li>Optional. Whether to use BigQuery&#39;s partition tables (https://cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#39; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.</li>
</ul>
</li>
<li>
<p><code>uses-timestamp-column-partitioning=false</code></p>
<ul>
<li>Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use. All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.</li>
<li>Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.</li>
</ul>
</li>
<li>
<p><code>.. create-time=at</code></p>
<p><code>.. create-time=sit</code></p>
<ul>
<li>Output only. The creation timestamp of the sink.This field may not be present for older sinks.</li>
</ul>
</li>
<li><code>description=dolore</code><ul>
<li>Optional. A description of this sink. The maximum length of the description is 8000 characters.</li>
<li><code>description=aliquyam</code><ul>
<li>Optional. A description of this sink.The maximum length of the description is 8000 characters.</li>
</ul>
</li>
<li><code>destination=eirmod</code><ul>
<li><code>destination=eos</code><ul>
<li>Required. The export destination: &#34;storage.googleapis.com/[GCS_BUCKET]&#34; &#34;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&#34; &#34;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&#34; The sink&#39;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Exporting Logs with Sinks (https://cloud.google.com/logging/docs/api/tasks/exporting-logs).</li>
</ul>
</li>
<li><code>disabled=true</code><ul>
<li>Optional. If set to True, then this sink is disabled and it does not export any log entries.</li>
<li><code>disabled=false</code><ul>
<li>Optional. If set to true, then this sink is disabled and it does not export any log entries.</li>
</ul>
</li>
<li><code>filter=accusam</code><ul>
<li>Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries). The only exported log entries are those that are in the resource owning the sink and that match the filter. For example: logName=&#34;projects/[PROJECT_ID]/logs/[LOG_ID]&#34; AND severity&gt;=ERROR </li>
<li><code>filter=dolores</code><ul>
<li>Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&#34;projects/[PROJECT_ID]/logs/[LOG_ID]&#34; AND severity&gt;=ERROR</li>
</ul>
</li>
<li><code>include-children=true</code><ul>
<li>Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#39;s parent resource are available for export. If the field is true, then logs from all the projects, folders, and billing accounts contained in the sink&#39;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#39;s filter expression. For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#39;s parent. To only export entries from certain child projects, filter on the project part of the log name: logName:(&#34;projects/test-project1/&#34; OR &#34;projects/test-project2/&#34;) AND resource.type=gce_instance </li>
<li>Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#39;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#39;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#39;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#39;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&#34;projects/test-project1/&#34; OR &#34;projects/test-project2/&#34;) AND resource.type=gce_instance</li>
</ul>
</li>
<li><code>name=erat</code><ul>
<li>Required. The client-assigned sink identifier, unique within the project. Example: &#34;my-syslog-errors-to-pubsub&#34;. Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric.</li>
<li><code>name=gubergren</code><ul>
<li>Required. The client-assigned sink identifier, unique within the project.For example: &#34;my-syslog-errors-to-pubsub&#34;. Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric.</li>
</ul>
</li>
<li><code>output-version-format=dolores</code><ul>
<li><code>output-version-format=dolor</code><ul>
<li>Deprecated. This field is unused.</li>
</ul>
</li>
<li><code>update-time=erat</code><ul>
<li><code>update-time=aliquyam</code><ul>
<li>Output only. The last update timestamp of the sink.This field may not be present for older sinks.</li>
</ul>
</li>
<li><code>writer-identity=accusam</code><ul>
<li>Output only. An IAM identity—a service account or group—under which Logging writes the exported log entries to the sink&#39;s destination. This field is set by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Granting Access for a Resource (https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#39;s documentation to determine the appropriate IAM roles to assign to the identity.</li>
<li><code>writer-identity=no</code><ul>
<li>Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#39;s destination. This field is set by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Granting Access for a Resource (https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#39;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink do not have a writer_identity and no additional permissions are required.</li>
</ul>
</li>
</ul>
@@ -991,7 +1126,7 @@ or more key-value-pairs, and is called like this <code>-p k1=v1 k2=v2</code> eve
<code>-p</code> for completeness.</p>
<ul>
<li><strong>-p unique-writer-identity=boolean</strong><ul>
<li>Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink&#39;s parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink&#39;s destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.</li>
<li>Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink&#39;s parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink&#39;s destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.</li>
</ul>
</li>
</ul>