Skip to content

Hapag-Lloyd/fluent-bit-multiline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

The config also configures the container to provide an endpoint for healthcheck data. Go to the FluentBit Documentation 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 for more details on this topic.

Example:

{
  "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"
    }
  }
}