Slide 27
Slide 27 text
{
"essential": true,
"image": "amazon/aws-for-fluent-bit:latest",
"name": "log_router",
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"enable-ecs-log-metadata": "true",
"config-file-type": "file",
"config-file-value": "/json.conf"
}
}
},
{
"essential": true,
"image": "",
"name": "app",
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "cloudwatch",
"region": "us-west-2",
"log_group_name": "firelens-fluent-bit",
"log_stream_prefix": "from-fluent-bit",
"include-pattern": "[Ee]rror"
}
}
}
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
"image": "amazon/aws-for-fluent-bit:latest",
"image": "",
{
1
"essential": true,
2
3
"name": "log_router",
4
"firelensConfiguration": {
5
"type": "fluentbit",
6
"options": {
7
"enable-ecs-log-metadata": "true",
8
"config-file-type": "file",
9
"config-file-value": "/json.conf"
10
}
11
}
12
},
13
{
14
"essential": true,
15
16
"name": "app",
17
"logConfiguration": {
18
"logDriver": "awsfirelens",
19
"options": {
20
"Name": "cloudwatch",
21
"region": "us-west-2",
22
"log_group_name": "firelens-fluent-bit",
23
"log_stream_prefix": "from-fluent-bit",
24
"include-pattern": "[Ee]rror"
25
}
26
}
27
}
28
"essential": true,
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"enable-ecs-log-metadata": "true",
"config-file-type": "file",
"config-file-value": "/json.conf"
}
}
{
1
2
"image": "amazon/aws-for-fluent-bit:latest",
3
"name": "log_router",
4
5
6
7
8
9
10
11
12
},
13
{
14
"essential": true,
15
"image": "",
16
"name": "app",
17
"logConfiguration": {
18
"logDriver": "awsfirelens",
19
"options": {
20
"Name": "cloudwatch",
21
"region": "us-west-2",
22
"log_group_name": "firelens-fluent-bit",
23
"log_stream_prefix": "from-fluent-bit",
24
"include-pattern": "[Ee]rror"
25
}
26
}
27
}
28
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "cloudwatch",
"region": "us-west-2",
"log_group_name": "firelens-fluent-bit",
"log_stream_prefix": "from-fluent-bit",
"include-pattern": "[Ee]rror"
}
{
1
"essential": true,
2
"image": "amazon/aws-for-fluent-bit:latest",
3
"name": "log_router",
4
"firelensConfiguration": {
5
"type": "fluentbit",
6
"options": {
7
"enable-ecs-log-metadata": "true",
8
"config-file-type": "file",
9
"config-file-value": "/json.conf"
10
}
11
}
12
},
13
{
14
"essential": true,
15
"image": "",
16
"name": "app",
17
18
19
20
21
22
23
24
25
26
}
27
}
28
[INPUT]
Name forward
unix_path /var/run/fluent.sock
[INPUT]
Name forward
Listen 0.0.0.0
Port 24224
[FILTER]
Name grep
Match app-firelens*
Regex log [Ee]rror
[FILTER]
Name record_modifier
Match *
Record ecs_cluster firelens-example
Record ecs_task_arn arn:aws:ecs:us-west-2:0123456
Record ecs_task_definition firelens-example-sessi
@INCLUDE /json.conf
[OUTPUT]
Name cloudwatch
Match app-firelens*
region us-west-2
log_group_name firelens-fluent-bit
log_stream_prefix from-fluent-bit
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
[INPUT]
Name forward
unix_path /var/run/fluent.sock
[INPUT]
Name forward
Listen 0.0.0.0
Port 24224
1
2
3
4
5
6
7
8
9
[FILTER]
10
Name grep
11
Match app-firelens*
12
Regex log [Ee]rror
13
14
[FILTER]
15
Name record_modifier
16
Match *
17
Record ecs_cluster firelens-example
18
Record ecs_task_arn arn:aws:ecs:us-west-2:0123456
19
Record ecs_task_definition firelens-example-sessi
20
21
@INCLUDE /json.conf
22
23
[OUTPUT]
24
Name cloudwatch
25
Match app-firelens*
26
region us-west-2
27
log_group_name firelens-fluent-bit
28
log_stream_prefix from-fluent-bit
29
[FILTER]
Name record_modifier
Match *
Record ecs_cluster firelens-example
Record ecs_task_arn arn:aws:ecs:us-west-2:0123456
Record ecs_task_definition firelens-example-sessi
@INCLUDE /json.conf
[INPUT]
1
Name forward
2
unix_path /var/run/fluent.sock
3
4
[INPUT]
5
Name forward
6
Listen 0.0.0.0
7
Port 24224
8
9
[FILTER]
10
Name grep
11
Match app-firelens*
12
Regex log [Ee]rror
13
14
15
16
17
18
19
20
21
22
23
[OUTPUT]
24
Name cloudwatch
25
Match app-firelens*
26
region us-west-2
27
log_group_name firelens-fluent-bit
28
log_stream_prefix from-fluent-bit
29
[FILTER]
Name grep
Match app-firelens*
Regex log [Ee]rror
[OUTPUT]
Name cloudwatch
Match app-firelens*
region us-west-2
log_group_name firelens-fluent-bit
log_stream_prefix from-fluent-bit
[INPUT]
1
Name forward
2
unix_path /var/run/fluent.sock
3
4
[INPUT]
5
Name forward
6
Listen 0.0.0.0
7
Port 24224
8
9
10
11
12
13
14
[FILTER]
15
Name record_modifier
16
Match *
17
Record ecs_cluster firelens-example
18
Record ecs_task_arn arn:aws:ecs:us-west-2:0123456
19
Record ecs_task_definition firelens-example-sessi
20
21
@INCLUDE /json.conf
22
23
24
25
26
27
28
29
ECS task defition fluent-bit.conf