Amazon Kinesis Data Streams
Send logs to Amazon Kinesis Streams
The Amazon Kinesis Data Streams output plugin allows to ingest your records into the Kinesis service.
This is the documentation for the core Fluent Bit Kinesis plugin written in C. It has all the core features of the aws/amazon-kinesis-streams-for-fluent-bit Golang Fluent Bit plugin released in 2019. The Golang plugin was named kinesis
; this new high performance and highly efficient kinesis plugin is called kinesis_streams
to prevent conflicts/confusion.
Currently, this kinesis_streams
plugin will always use a random partition key when uploading records to kinesis via the PutRecords API.
See here for details on how AWS credentials are fetched.
Configuration Parameters
Getting Started
In order to send records into Amazon Kinesis Data Streams, you can run the plugin from the command line or through the configuration file:
Command Line
The kinesis_streams plugin, can read the parameters from the command line through the -p argument (property), e.g:
Configuration File
In your main configuration file append the following Output section:
Permissions
The following AWS IAM permissions are required to use this plugin:
Worker support
Fluent Bit 1.7 adds a new feature called workers
which enables outputs to have dedicated threads. This kinesis_streams
plugin fully supports workers.
Example:
If you enable a single worker, you are enabling a dedicated thread for your Kinesis 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.
AWS for Fluent Bit
Amazon distributes a container image with Fluent Bit and these plugins.
GitHub
github.com/aws/aws-for-fluent-bit
Amazon ECR Public Gallery
Our images are available in Amazon ECR Public Gallery. You can download images with different tags by following command:
For example, you can pull the image with latest version by:
If you see errors for image pull limits, try log into public ECR with your AWS credentials:
You can check the Amazon ECR Public official doc for more details.
Docker Hub
Amazon ECR
You can use our SSM Public Parameters to find the Amazon ECR image URI in your region:
For more see the AWS for Fluent Bit github repo.
Last updated