-
Notifications
You must be signed in to change notification settings - Fork 10
/
fluent-bit-onepod.conf
71 lines (65 loc) · 2.44 KB
/
fluent-bit-onepod.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{{#if definitions.include_onepod}}
# Note: The mainline onepod config includes the following line
# We do not need this line because we are using the init process
# @INCLUDE /config/fluent-bit.conf
[OUTPUT]
# Send any StdOut/StdErr Logs to A CloudWatch Logs Group.
# FireLens automatically tags them to {container name}-firelens-{task ID}.
Name cloudwatch_logs
Match Application-firelens-*
region {{config.region}}
log_group_name {{definitions.ServiceName}}-OnePod-${STAGE}-AppContainer-STDOUT
log_stream_prefix STDOUT-${HOSTNAME}
auto_create_group {{definitions.cw_auto_create_group}}
retry_limit 3
{{#if definitions.cw_use_mock}}
tls.verify false
port 4545
endpoint {{definitions.endpoint_mock}}
{{/if}}
[OUTPUT]
# Send any Application Logs to A CloudWatch Logs Group
Name cloudwatch_logs
Match ApplicationLogs
region {{config.region}}
log_group_name {{definitions.ServiceName}}-OnePod-${STAGE}-ApplicationLogs
log_stream_prefix ApplicationLogs-${HOSTNAME}
log_key log
auto_create_group {{definitions.cw_auto_create_group}}
retry_limit 3
{{#if definitions.cw_use_mock}}
tls.verify false
port 4545
endpoint {{definitions.endpoint_mock}}
{{/if}}
[OUTPUT]
# Send any Request Logs to A CloudWatch Logs Group
Name cloudwatch_logs
Match RequestLogs
region {{config.region}}
log_group_name {{definitions.ServiceName}}-OnePod-${STAGE}-RequestLogs
log_stream_prefix RequestLogs-${HOSTNAME}
log_key log
auto_create_group {{definitions.cw_auto_create_group}}
retry_limit 3
{{#if definitions.cw_use_mock}}
tls.verify false
port 4545
endpoint {{definitions.endpoint_mock}}
{{/if}}
[OUTPUT]
# Send any ServiceMetrics Logs to A CloudWatch Logs Group
Name cloudwatch_logs
Match ServiceMetrics
region {{definitions.LOG_REGION}}
log_group_name {{definitions.ServiceName}}-OnePod-${STAGE}-ServiceMetrics
log_stream_prefix ServiceMetrics-${HOSTNAME}
log_key log
auto_create_group {{definitions.cw_auto_create_group}}
retry_limit 3
{{#if definitions.cw_use_mock}}
tls.verify false
port 4545
endpoint {{definitions.endpoint_mock}}
{{/if}}
{{/if}}