Skip to content

Commit 344a3ae

Browse files
committed
docs: pipeline: inputs: gcs: fix audience wording and lint findings
Signed-off-by: lecaros <jose.lecaros@gmail.com>
1 parent e03bed5 commit 344a3ae

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

‎pipeline/inputs/gcs.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ This input always runs in its own [thread](../../administration/multithreading.m
4141
| `end_offset` | Only read objects whose name is lexicographically lower than this value. See [Select objects](#select-objects). | _none_ |
4242
| `endpoint` | Cloud Storage API endpoint. Use `http://` only for tests and emulators. See [Use an emulator](#use-an-emulator). | `https://storage.googleapis.com` |
4343
| `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_ |
4545
| `google_service_credentials` | Absolute path to a Google Cloud service account credentials JSON file. See [Authentication](#authentication). | _none_ |
4646
| `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_ |
4747
| `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` |
4848
| `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` |
4949
| `object_key` | When set, adds the name of the source object to every record under this key. | _none_ |
5050
| `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_ |
5252
| `pool_id` | Workload identity pool ID. Required when `enable_identity_federation` is `true`. See [Workload Identity Federation](#workload-identity-federation). | _none_ |
5353
| `prefix` | Only read objects whose name starts with this prefix. See [Select objects](#select-objects). | _none_ |
5454
| `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
113113
- `provider_id`: the workload identity pool provider ID.
114114
- `identity_token_file`: the path to the file holding the `OIDC` subject token.
115115

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.
117117

118118
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.
119119

@@ -134,7 +134,7 @@ The plugin sends `prefix`, `start_offset`, and `end_offset` to Cloud Storage as
134134

135135
You can combine the three options. If you set none of them, the plugin reads every object in the bucket.
136136

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:
138138

139139
```text
140140
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`)
175175

176176
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.
177177

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.
179179

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.
181181

182182
## Tags
183183

@@ -209,9 +209,9 @@ Set `db` to the path of a SQLite file to make the plugin remember which objects
209209

210210
Because the key includes the generation, an object that someone overwrites in the bucket has a new generation and is read again.
211211

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.
213213

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.
215215

216216
Without `db`, the plugin doesn't keep any state, and every run reads all the selected objects again.
217217

@@ -249,7 +249,7 @@ The following examples use the object layout that the [output plugin](../outputs
249249

250250
### Rehydrate a day of logs and exit
251251

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:
253253

254254
{% tabs %}
255255
{% tab title="fluent-bit.yaml" %}

‎vale-styles/FluentBit/Headings.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,6 @@ exceptions:
177177
- Windows
178178
- Windows Event
179179
- Windows Server
180+
- Workload Identity Federation
180181
- YAML
181182
- YUM

‎vale-styles/FluentBit/Spelling-exceptions.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ Queryable
191191
Raspbian
192192
rdkafka
193193
Redpanda
194+
rehydrate
195+
rehydrated
196+
rehydrates
197+
rehydrating
198+
rehydration
194199
remapper
195200
reindexed
196201
rollup

0 commit comments

Comments
 (0)