You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 344a3ae
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: pipeline/inputs/gcs.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,14 +41,14 @@ This input always runs in its own [thread](../../administration/multithreading.m
41
41
|`end_offset`| Only read objects whose name is lexicographically lower than this value. See [Select objects](#select-objects). |_none_|
42
42
|`endpoint`| Cloud Storage API endpoint. Use `http://` only for tests and emulators. See [Use an emulator](#use-an-emulator). |`https://storage.googleapis.com`|
43
43
|`exit_on_complete`| Stop Fluent Bit after the plugin has processed all the objects. Exits with a non-zero status if the run fails or an object failed. |`false`|
44
-
|`google_service_account`|Email address of the service account to impersonate after the token exchange. When unset, the federated token is used directly against Cloud Storage. Only used when `enable_identity_federation` is `true`. See [Workload Identity Federation](#workload-identity-federation). |_none_|
44
+
|`google_service_account`|The email address of the service account to impersonate after the token exchange. When unset, the federated token is used directly against Cloud Storage. Only used when `enable_identity_federation` is `true`. See [Workload Identity Federation](#workload-identity-federation). |_none_|
45
45
|`google_service_credentials`| Absolute path to a Google Cloud service account credentials JSON file. See [Authentication](#authentication). |_none_|
46
46
|`identity_token_file`| Path to the file that holds the `OIDC` subject token used as the federation credential source. Required when `enable_identity_federation` is `true`. See [Workload Identity Federation](#workload-identity-federation). |_none_|
47
47
|`max_object_size`| Maximum size of an object. The limit also applies to the uncompressed content. The plugin skips larger objects. See [Limits and error handling](#limits-and-error-handling). |`128M`|
48
48
|`metadata_server`| Address of the Compute Engine or Google Kubernetes Engine metadata server, used to request an access token when no credentials file is configured. See [Authentication](#authentication). |`http://metadata.google.internal`|
49
49
|`object_key`| When set, adds the name of the source object to every record under this key. |_none_|
50
50
|`page_size`| Maximum number of objects to request on every page of the listing. Must be greater than `0`. |`1000`|
51
-
|`parser`| Name of a [parser](../parsers.md) to apply to every line. When unset, a line that is a JSON object becomes the record, and any other line becomes `{"log": line}`. See [Record format](#record-format). |_none_|
51
+
|`parser`| Name of a [parser](../parsers.md) to apply to every line. When unset, a line that's a JSON object becomes the record, and any other line becomes `{"log": line}`. See [Record format](#record-format). |_none_|
52
52
|`pool_id`| Workload identity pool ID. Required when `enable_identity_federation` is `true`. See [Workload Identity Federation](#workload-identity-federation). |_none_|
53
53
|`prefix`| Only read objects whose name starts with this prefix. See [Select objects](#select-objects). |_none_|
54
54
|`project_number`| Number of the Google Cloud project that owns the workload identity pool. Required when `enable_identity_federation` is `true`. See [Workload Identity Federation](#workload-identity-federation). |_none_|
@@ -113,7 +113,7 @@ This mode requires the following options. If any of them is missing, the plugin
113
113
-`provider_id`: the workload identity pool provider ID.
114
114
-`identity_token_file`: the path to the file holding the `OIDC` subject token.
115
115
116
-
The plugin builds the `STS` audience from the first three of these values as `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/providers/PROVIDER_ID`. This string must match the audience configured on the pool provider.
116
+
The plugin builds the `STS` audience from the first three of these values as `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/providers/PROVIDER_ID`. This string identifies the workload identity pool provider that validates the token. The `aud` claim of the token in `identity_token_file` must be an audience that the provider accepts.
117
117
118
118
The plugin re-reads `identity_token_file` on every token exchange, so platforms that rotate the token in place, such as a `kubelet` projected token, work without a restart.
119
119
@@ -134,7 +134,7 @@ The plugin sends `prefix`, `start_offset`, and `end_offset` to Cloud Storage as
134
134
135
135
You can combine the three options. If you set none of them, the plugin reads every object in the bucket.
136
136
137
-
By default, the output plugin names objects `fluent-bit-logs/$TAG/%Y/%m/%d/%H/%M/%S`, with a random suffix such as `-object1a2b3c4d` appended. Because the tag comes before the date, objects of the same tag are contiguous and sorted by time, so you can select a time window for one tag with offsets. For example, the following options select every object that the `app.log` tag wrote on 23 November 2026:
137
+
By default, the output plugin names objects `fluent-bit-logs/$TAG/%Y/%m/%d/%H/%M/%S`, with a random suffix such as `-object1a2b3c4d` appended. Because the tag comes before the date, objects of the same tag are contiguous and sorted by time, so you can select a time window for one tag with offsets. For example, the following options select every object that the `app.log` tag wrote on November 23, 2026:
138
138
139
139
```text
140
140
prefix: fluent-bit-logs/app.log/
@@ -175,9 +175,9 @@ By default, the plugin looks in each JSON record for the `date` key (`time_key`)
175
175
176
176
Strings are accepted only by `auto`, `iso8601`, and `java_sql_timestamp`. Numbers are accepted only by `auto`, `double`, `epoch`, and `epoch_ms`. Negative numbers aren't valid timestamps.
177
177
178
-
Set `time_keep` to `true` to keep the time key in the record after using it. If the key is missing or its value can't be parsed, the plugin uses the time of ingestion as the timestamp and leaves the record unchanged. A value that Fluent Bit can't represent as an event time, for example seconds beyond the 32-bit range, is treated the same way: the plugin uses the time of ingestion and leaves the field in the record.
178
+
Set `time_keep` to `true` to keep the time key in the record after using it. If the key is missing or its value can't be parsed, the plugin uses the time of ingestion as the timestamp and leaves the record unchanged. A value that Fluent Bit can't represent as an event time, for example seconds beyond the 32-bit range, is treated the same way. The plugin uses the time of ingestion and leaves the field in the record.
179
179
180
-
When you set `parser`, the plugin ignores `time_key` and `time_format`. It uses the timestamp that the parser extracts, and falls back to the time of ingestion when the parser doesn't extract one. Set `time_key` to `false`, `off`, or `none` to use the time of ingestion for every record.
180
+
When you set `parser`, the plugin ignores `time_key` and `time_format`. It uses the timestamp that the parser extracts, and falls back to the time of ingestion when the parser doesn't extract one. Without `parser`, set `time_key` to `false`, `off`, or `none` to use the time of ingestion for every record. With `parser`, disabling `time_key` has no effect.
181
181
182
182
## Tags
183
183
@@ -209,9 +209,9 @@ Set `db` to the path of a SQLite file to make the plugin remember which objects
209
209
210
210
Because the key includes the generation, an object that someone overwrites in the bucket has a new generation and is read again.
211
211
212
-
The plugin records an object only after it hands all of its records to the Fluent Bit engine. If Fluent Bit stops or restarts in the middle of an object, the plugin reads that object again in full on the next run, so your destination might receive duplicates of the records from that one object.
212
+
The plugin records an object only after it hands all of its records to the Fluent Bit engine. If Fluent Bit stops or restarts in the middle of an object, the plugin reads that object again in full on the next run. Your destination might receive duplicates of the records from that one object.
213
213
214
-
The database doesn't protect records that the engine has buffered but not yet delivered. If the process is killed or crashes, those records can be lost, as with other inputs, and because the plugin already recorded the object, it doesn't read the object again. [Filesystem buffering](../buffering.md#filesystem-buffering-hybrid) reduces this exposure but doesn't remove it, because this input hands records to the engine from its own thread.
214
+
The database doesn't protect records that the engine has buffered but not yet delivered. If the process is killed or crashes, those records can be lost, as with other inputs. Because the plugin already recorded the object, it doesn't read the object again. [Filesystem buffering](../buffering.md#filesystem-buffering-hybrid) reduces this exposure but doesn't remove it, because this input hands records to the engine from its own thread.
215
215
216
216
Without `db`, the plugin doesn't keep any state, and every run reads all the selected objects again.
217
217
@@ -249,7 +249,7 @@ The following examples use the object layout that the [output plugin](../outputs
249
249
250
250
### Rehydrate a day of logs and exit
251
251
252
-
The following configuration reads the objects that the `app.log` tag wrote on 23 November 2026, prints the records on the console, and exits when it finishes:
252
+
The following configuration reads the objects that the `app.log` tag wrote on November 23, 2026, prints the records on the console, and exits when it finishes:
0 commit comments