-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathfilesystem.conf
46 lines (42 loc) · 1.64 KB
/
filesystem.conf
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
35
36
37
38
39
40
41
42
43
44
45
46
# Example for storage.type filesystem
# Example for default storage.type memory
[SERVICE]
Grace 30
storage.path /var/log/flb-storage
# Total Max Memory Usage <= 2 * # of input definitions * storage.max_chunks_up * 2 MB per chunk
# 2 MB internal chunk size is not configurable
# So container memory reservation should be AT LEAST 100 MB
storage.max_chunks_up 25
# Recommended: enable metrics interface for plugins and storage
# https://github.com/aws-samples/amazon-ecs-firelens-examples/tree/mainline/examples/fluent-bit/send-fb-internal-metrics-to-cw
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_PORT 2020
# enable storage metrics
storage.metrics On
[INPUT]
Name tcp
Listen 0.0.0.0
Port 5170
Chunk_Size 32
# this number of kilobytes is the max size of single log message that can be accepted
Buffer_Size 64
Format none
Tag tcp-logs
# filesystem buffer for logs collected by this input
storage.type filesystem
# pause the input when the [SERVICE] storage.max_chunks_up memory limit is hit
storage.pause_on_chunks_overlimit Off # default/recommended value
[OUTPUT]
Name cloudwatch_logs
Match *
region us-east-1
log_group_name firelens-tutorial
log_stream_name /logs/${HOSTNAME}
auto_create_group true
retry_limit 2
# limit the filesystem storage that this output can use
storage.total_limit_size 1G
# consider configuring more than 1 worker, up to the numer of cores on your host
# to accommodate higher throughput logging. Only 2.32+ supports multi-worker
workers 1