Skip to content

Commit 09db4a2

Browse files
authored
Merge pull request #1938 from fluent/lynettemiles/sc-136239/update-fluent-bit-docs-pipeline-outputs-firehose
2 parents 23aa375 + 295cb80 commit 09db4a2

File tree

2 files changed

+34
-31
lines changed

2 files changed

+34
-31
lines changed

pipeline/outputs/firehose.md

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,45 @@ description: Send logs to Amazon Kinesis Firehose
44

55
# Amazon Kinesis Data Firehose
66

7-
The Amazon Kinesis Data Firehose output plugin allows to ingest your records into the [Firehose](https://aws.amazon.com/kinesis/data-firehose/) service.
7+
The _Amazon Kinesis Data Firehose_ output plugin lets you ingest your records into the [Firehose](https://aws.amazon.com/kinesis/data-firehose/) service.
88

9-
This is the documentation for the core Fluent Bit Firehose plugin written in C. It can replace the [aws/amazon-kinesis-firehose-for-fluent-bit](https://github.com/aws/amazon-kinesis-firehose-for-fluent-bit) Golang Fluent Bit plugin released last year. The Golang plugin was named `firehose`; this new high performance and highly efficient firehose plugin is called `kinesis_firehose` to prevent conflicts/confusion.
9+
This is the documentation for the core Fluent Bit Firehose plugin written in C. It can replace the [aws/amazon-kinesis-firehose-for-fluent-bit](https://github.com/aws/amazon-kinesis-firehose-for-fluent-bit) Golang Fluent Bit plugin. The Golang plugin was named `firehose`. This new Firehose plugin is called `kinesis_firehose` to prevent conflicts/confusion.
1010

11-
See [here](https://github.com/fluent/fluent-bit-docs/tree/43c4fe134611da471e706b0edb2f9acd7cdfdbc3/administration/aws-credentials.md) for details on how AWS credentials are fetched.
11+
See [AWS credentials](https://docs.fluentbit.io/manual/administration/aws-credentials) for details on how AWS credentials are fetched.
1212

13-
## Configuration Parameters
13+
## Configuration parameters
1414

15-
| Key | Description |
16-
| :--- | :--- |
17-
| region | The AWS region. |
18-
| delivery\_stream | The name of the Kinesis Firehose Delivery stream that you want log records sent to. |
19-
| time\_key | Add the timestamp to the record under this key. By default the timestamp from Fluent Bit will not be added to records sent to Kinesis. |
20-
| time\_key\_format | strftime compliant format string for the timestamp; for example, the default is '%Y-%m-%dT%H:%M:%S'. Supports millisecond precision with '%3N' and supports nanosecond precision with '%9N' and '%L'; for example, adding '%3N' to support millisecond '%Y-%m-%dT%H:%M:%S.%3N'. This option is used with time\_key. |
21-
| log\_key | By default, the whole log record will be sent to Firehose. If you specify a key name with this option, then only the value of that key will be sent to Firehose. For example, if you are using the Fluentd Docker log driver, you can specify `log_key log` and only the log message will be sent to Firehose. |
22-
| compression | Compression type for Firehose records. Each log record is individually compressed and sent to Firehose. 'gzip' and 'arrow' are the supported values. 'arrow' is only an available if Apache Arrow was enabled at compile time. Defaults to no compression. |
23-
| role\_arn | ARN of an IAM role to assume \(for cross account access\). |
24-
| endpoint | Specify a custom endpoint for the Firehose API. |
25-
| sts\_endpoint | Custom endpoint for the STS API. |
26-
| auto\_retry\_requests | Immediately retry failed requests to AWS services once. This option does not affect the normal Fluent Bit retry mechanism with backoff. Instead, it enables an immediate retry with no delay for networking errors, which may help improve throughput when there are transient/random networking issues. This option defaults to `true`. |
27-
| external\_id | Specify an external ID for the STS API, can be used with the role_arn parameter if your role requires an external ID. |
28-
| profile | AWS profile name to use. Defaults to `default`. |
29-
| workers | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. Default: `1`. |
15+
This plugin uses the following configuration parameters:
3016

31-
## Getting Started
17+
| Key | Description | Default |
18+
| :--- | :--- | --------- |
19+
| `region` | The AWS region . | _none_ |
20+
| `delivery_stream` | The name of the Kinesis Firehose Delivery stream that you want log records sent to. | _none_ |
21+
| `time_key` | Add the timestamp to the record under this key. By default, the timestamp from Fluent Bit won't be added to records sent to Kinesis. | _none_ |
22+
| `time_key_format` | strftime compliant format string for the timestamp; for example, the default is `%Y-%m-%dT%H:%M:%S`. Supports millisecond precision with `%3N` and nanosecond precision with `%9N` and `%L`. For example, adding `%3N` to support millisecond `%Y-%m-%dT%H:%M:%S.%3N`. This option is used with `time_key`. | _none_ |
23+
| `log_key` | By default, the whole log record will be sent to Firehose. If you specify a key name with this option, then only the value of that key will be sent to Firehose. For example, if you are using the Fluentd Docker log driver, you can specify `log_key log` and only the log message will be sent to Firehose. | _none_ |
24+
| `compression` | Compression type for Firehose records. Each log record is individually compressed and sent to Firehose. Supported values: `gzip`. `arrow`. `arrow` is only an available if Apache Arrow was enabled at compile time. Defaults to no compression. | _none_ |
25+
| `role_arn` | ARN of an IAM role to assume (for cross account access`). | _none_ |
26+
| `endpoint` | Specify a custom endpoint for the Firehose API. | _none_ |
27+
| `sts_endpoint` | Custom endpoint for the STS API. | _none_ |
28+
| `auto_retry_requests` | Immediately retry failed requests to AWS services once. This option doesn't affect the normal Fluent Bit retry mechanism with backoff. Instead, it enables an immediate retry with no delay for networking errors, which can help improve throughput when there are transient/random networking issues. | `true` |
29+
| `external_id` | Specify an external ID for the STS API. Can be used with the `role_arn` parameter if your role requires an external ID. | _none_ |
30+
| `profile` | AWS profile name to use. | `default` |
31+
| `workers` | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. | `1` |
3232

33-
In order to send records into Amazon Kinesis Data Firehose, you can run the plugin from the command line or through the configuration file:
33+
## Get started
3434

35-
### Command Line
35+
To send records into Amazon Kinesis Data Firehose, you can run the plugin from the command line or through the configuration file.
3636

37-
The **firehose** plugin, can read the parameters from the command line through the **-p** argument \(property\), e.g:
37+
### Command line
38+
39+
The Firehose plugin can read the parameters from the command line through the `-p` argument (property).
3840

3941
```shell
4042
fluent-bit -i cpu -o kinesis_firehose -p delivery_stream=my-stream -p region=us-west-2 -m '*' -f 1
4143
```
4244

43-
### Configuration File
45+
### Configuration file
4446

4547
In your main configuration file append the following:
4648

@@ -49,7 +51,7 @@ In your main configuration file append the following:
4951

5052
```yaml
5153
pipeline:
52-
54+
5355
outputs:
5456
- name: kinesis_firehose
5557
match: '*'
@@ -90,7 +92,7 @@ The following AWS IAM permissions are required to use this plugin:
9092

9193
### Worker support
9294

93-
Fluent Bit 1.7 adds a new feature called `workers` which enables outputs to have dedicated threads. This `kinesis_firehose` plugin fully supports workers.
95+
Fluent Bit 1.7 added a new feature called `workers` which enables outputs to have dedicated threads. This `kinesis_firehose` plugin fully supports workers.
9496

9597
Example:
9698

@@ -99,7 +101,7 @@ Example:
99101

100102
```yaml
101103
pipeline:
102-
104+
103105
outputs:
104106
- name: kinesis_firehose
105107
match: '*'
@@ -125,7 +127,7 @@ pipeline:
125127

126128
{% hint style="info" %}
127129

128-
If you enable a single worker, you are enabling a dedicated thread for your Firehose output. We recommend starting with without workers, evaluating the performance, and then adding workers one at a time until you reach your desired/needed throughput. For most users, no workers or a single worker will be sufficient.
130+
If you enable a single worker, you are enabling a dedicated thread for your Firehose output. Fluent Bit recommends starting with without workers, evaluating the performance, and then adding workers one at a time until you reach your desired/needed throughput. For most users, no workers or a single worker will be sufficient.
129131

130132
{% endhint %}
131133

@@ -141,7 +143,7 @@ Amazon distributes a container image with Fluent Bit and these plugins.
141143

142144
[aws-for-fluent-bit](https://gallery.ecr.aws/aws-observability/aws-for-fluent-bit)
143145

144-
Our images are available in Amazon ECR Public Gallery. You can download images with different tags by following command:
146+
Fluent Bit images are available in Amazon ECR Public Gallery. You can download images with different tags by following command:
145147

146148
```shell
147149
docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:<tag>
@@ -167,10 +169,10 @@ You can check the [Amazon ECR Public official doc](https://docs.aws.amazon.com/A
167169

168170
#### Amazon ECR
169171

170-
You can use our SSM Public Parameters to find the Amazon ECR image URI in your region:
172+
You can use Fluent Bit SSM Public Parameters to find the Amazon ECR image URI in your region:
171173

172174
```shell
173175
aws ssm get-parameters-by-path --path /aws/service/aws-for-fluent-bit/
174176
```
175177

176-
For more see [the AWS for Fluent Bit GitHub repo](https://github.com/aws/aws-for-fluent-bit#public-images).
178+
For more see [the AWS for Fluent Bit GitHub repository](https://github.com/aws/aws-for-fluent-bit#public-images).

vale-styles/FluentBit/Headings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ exceptions:
1010
- Amazon
1111
- Amazon CloudWatch
1212
- Amazon ECR Public Gallery
13+
- Amazon Kinesis Data Firehose
1314
- Amazon Kinesis Firehose
1415
- Amazon Kinesis Streams
1516
- API

0 commit comments

Comments
 (0)