Skip to content

Commit

Permalink
feat: fluent-bit.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
liaosunny123 committed Sep 3, 2023
1 parent 0326bda commit 0849313
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
32 changes: 32 additions & 0 deletions config/logs/fluent-bit.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[SERVICE]
Parsers_File parsers.conf
Daemon Off
Log_Level info
HTTP_Server off
HTTP_Listen 0.0.0.0
HTTP_Port 24224
[INPUT]
Name tail
Tag gugotik.*
Path /var/log/gugotik/*.log
Mem_Buf_Limit 10MB
DB /var/log/flt_logs.db
Refresh_Interval 5
Ignore_Older 10s
Rotate_Wait 5
[FILTER]
Name record_modifier
Match *
Key_name message
Record hostname ${HOSTNAME}
Record namespace gugotik
Record environment prod
[OUTPUT]
Name es
Match *
Host [YOUR HOST]
Port 9200
Logstash_Format On
Retry_Limit False
Time_Key @timestamp
Logstash_Prefix gugotik
6 changes: 6 additions & 0 deletions config/logs/parsers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[PARSER]
Name docker
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%SZ
Time_Keep On
7 changes: 7 additions & 0 deletions config/logs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Log Solution

GuGoTik 支持以 Fluent-bit 以 Sidecar 模式收集日志,目录中为推荐配置方案,开箱即用。

# Use

请根据需要自行更改 ES 的用户账号和密码等

0 comments on commit 0849313

Please sign in to comment.