Skip to content

This is a sample setup for ingesting data from kafka into elasticsearch with fluentbit.

License

Notifications You must be signed in to change notification settings

rueedlinger/fluent-bit-kafka-elastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluent Bit - Kafka / Elasticseach

This is a sample setup for ingesting data from kafka into elasticsearch with fluentbit. Filesystem buffering is enabled for both fluentbit instances.

Pipeline

Loading
stateDiagram-v2
    Dummy --> FluentBitSource
    FluentBitSource --> Kafka
    Kafka --> FluentBitSink
    FluentBitSink --> Elasticseach

FluentBit Source: (see fluent-bit.conf)

  • Dummy Input -> generates random audit events
  • Lua Filter audit_dummy.lua -> modifies the kafka messages before sending
  • Kafka Output -> publishes the events in Kafka

FluentBit Sink: (see fluent-bit.conf)

  • Kafka Input -> consumes audit events from a kafka topic
  • Lua Filter kafka.lua -> modifies the event before ingestion into elsaticsearch
  • Kafka Output -> publishes the events in elasticsearch

Getting started

To start the whole infrastructure just run:

docker compose up

Then the following services are available:

About

This is a sample setup for ingesting data from kafka into elasticsearch with fluentbit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages