Skip to content

Commit

Permalink
docker/fluent-bit add
Browse files Browse the repository at this point in the history
  • Loading branch information
gitworkflows committed Dec 8, 2024
1 parent 1c98d1c commit 71010a5
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/fluent-bit/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM fluent/fluent-bit:1.9.8
COPY ./fluent-bit.conf /fluent-bit/etc/fluent-bit.conf
COPY ./fluent-bit-dev.conf /fluent-bit/etc/fluent-bit-dev.conf
COPY ./parsers.conf /fluent-bit/etc/parsers.conf
30 changes: 30 additions & 0 deletions docker/fluent-bit/fluent-bit-dev.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[SERVICE]
Parsers_file /fluent-bit/etc/parsers.conf
Flush 1
Grace 30
[INPUT]
Name http
Host 0.0.0.0
Port 24224
[FILTER]
Name parser
Match *
Key_Name log
Parser jsonparser
Reserve_Data True
[OUTPUT]
Name file
Match *
Path /logs
Mkdir true
Format csv
# [OUTPUT]
# Name influxdb
# match *
# Host hostly-influxdb
# Port 8086
# Database hostly
# Bucket hostly
# Org hostly
# HTTP_Token 12345678
# Sequence_Tag _seq
30 changes: 30 additions & 0 deletions docker/fluent-bit/fluent-bit.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[SERVICE]
Parsers_file /fluent-bit/etc/parsers.conf
Flush 1
Grace 30
[INPUT]
Name http
Host 0.0.0.0
Port 24224
[FILTER]
Name parser
Match *
Key_Name log
Parser jsonparser
Reserve_Data True
[OUTPUT]
Name file
Match *
Path /app/logs
Mkdir true
Format csv
# [OUTPUT]
# Name influxdb
# match *
# Host hostly-influxdb
# Port 8086
# Database hostly
# Bucket hostly
# Org hostly
# HTTP_Token 12345678
# Sequence_Tag _seq
6 changes: 6 additions & 0 deletions docker/fluent-bit/parsers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[PARSER]
Name jsonparser
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On

0 comments on commit 71010a5

Please sign in to comment.