[2020/12/10 11:44:42] [警告] net_tcp_fd_connect: getaddrinfo(host='https://abc.amazonaws.com'): 名称或服务未知 [2020/12/10 11:44:42 ] [错误] [io_tls] flb_io_tls.c:359 NET - 连接已被对等方重置 [2020/12/10 11:44:42] [警告] [引擎] 无法刷新块 '1-1607600678.900285114.flb',重试10 秒内:task_id=0, input=forward.0 > output=es.1
在将日志路由到亚马逊弹性搜索时,在使用 fluent bit 和 firelens 设置 ecs fargate 集群时在 cloudwatch 上遇到这些错误。知道如何解决这个问题吗?我正在使用以下任务定义进行设置:-
{
"family": "nginx-firelens-test",
"taskRoleArn": "arn:aws:iam::xxxxxxxxxxx:role/ECS-firelens",
"executionRoleArn": "arn:aws:iam::xxxxxxxxxxxx:role/ECS-firelens",
"cpu": "512",
"memory": "1024",
"requiresCompatibilities": [
"FARGATE"
],
"networkMode": "awsvpc",
"containerDefinitions": [
{
"name": "log_router",
"image": "906394416424.dkr.ecr.us-east-1.amazonaws.com/aws-for-fluent-bit:latest",
"essential": true,
"firelensConfiguration": {
"type": "fluentbit",
"options":{
"enable-ecs-log-metadata":"true"
}
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "firelens-container",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "firelens"
}
}
},
{
"name": "nginx-test",
"image": "nginx",
"portMappings": [
{
"containerPort": 80
}
],
"essential": true,
"environment": [],
"logConfiguration": {
"logDriver": "awsfirelens",
"secretOptions": [],
"options": {
"Name": "es",
"Host": "https://abc.amazonaws.com",
"Port": "443",
"tls": "On",
"Index": "my_index",
"Type": "fluentbit",
"Aws_Region": "us-east-1"
}
}
}
]
}