Skip to content

Instantly share code, notes, and snippets.

@mattjtodd
Created May 30, 2018 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattjtodd/99824c21c63821def5daa73ac58fc7a3 to your computer and use it in GitHub Desktop.
Save mattjtodd/99824c21c63821def5daa73ac58fc7a3 to your computer and use it in GitHub Desktop.
FluentBit configuration for elastic JSON message output
[SERVICE]
Flush 1
Daemon Off
Log_Level info
Parsers_File /fluent-bit/etc/parsers.conf
[INPUT]
Name forward
Listen 0.0.0.0
Port 24224
Chunk_Size 32
Buffer_Size 64
Parser docker
Tag docker
[FILTER]
Name parser
Match *
Key_Name log
Parser json
[OUTPUT]
Name es
Match *
Host elasticsearch
Include_Tag_Key On
Tag_Key tag
Port 9200
Generate_ID On
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment