Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hapag-lloyd/fluent-bit-multiline

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows.
https://github.com/hapag-lloyd/fluent-bit-multiline

cloudnative data-collector fluent-bit fluentd forwarder logging logs metrics opentelemetry stream-processing traces

Last synced: 3 months ago
JSON representation

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows.

Awesome Lists containing this project

README

        

# fluent-bit-multiline

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows.

The main goal of this project is to extend the default aws-for-fluent-bit docker image
to support `partial_message` mode of fluent bit. Partial/Split container logs are then concatenated into one log.
This is useful if the logging destination expects logs to be single line or if you
log in JSON format (for ex. to Datadog or OpenSearch).

For more information, see here: [Example from AWS](https://github.com/aws-samples/amazon-ecs-firelens-examples/tree/mainline/examples/fluent-bit/filter-multiline-partial-message-mode)

The config also configures the container to provide an endpoint for healthcheck data.
Go to the [FluentBit Documentation](https://docs.fluentbit.io/manual/administration/monitoring#health-check-for-fluent-bit) for more information.

## Usage

Use this image inside of container definitions for AWS ECS Services. Make sure to reference the custom configuration
file!

Note: Using the `edge` tag serves as an example here and is not recommended for productive use!
Just like with the `latest` tag, it is unknown what exact version will be used or is currently in use.
See [this blog post](https://vsupalov.com/docker-latest-tag/) for more details on this topic.

Example:

```json
{
"image": "ghcr.io/hapag-lloyd/fluent-bit-multiline:edge",
"name": "log_router",
"memoryReservation": 50,
"healthCheck": {
"command": ["CMD-SHELL","curl -s http://127.0.0.1:2020/api/v1/health || exit 1"],
"interval": 30,
"timeout": 5,
"retries": 3
},
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"config-file-type": "file",
"config-file-value": "/extra.conf"
}
}
}
```