-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfluent-bit.conf
More file actions
34 lines (30 loc) · 963 Bytes
/
Copy pathfluent-bit.conf
File metadata and controls
34 lines (30 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[SERVICE]
Flush 1
Daemon off
Log_Level info
Parsers_File parsers.conf
[INPUT]
Name tail
Tag docker.*
# This path must match the mounted path in docker-compose.yaml
Path /var/lib/docker/containers/*/*-json.log
DB /var/log/flb_tail.db
Parser docker
Mem_Buf_Limit 5MB
Skip_Long_Lines On
# --- FILTER: Essential for Docker log parsing and making records structured ---
[FILTER]
Name parser
Match docker.*
Key_Name log
Parser json
Reserve_Data On
# --- OUTPUT: Send OTLP Logs to the OTEL Collector ---
[OUTPUT]
Name opentelemetry
Match *
Host otel_collector
Port 4318
logs_uri /v1/logs
add_label service.name apps-logs-via-otel-collector
Log_Response_Payload true