错误io\ U tls flb\ U io\ U tls.c:359网络-对等方重置了连接

velaa5lx  于 2021-06-13  发布在  ElasticSearch
关注(0)|答案(0)|浏览(258)

[2020/12/10 11:44:42][warn]网络\u tcp\u fd\u连接:getaddrinfo(主机='https://.amazonaws.com'):名称或服务未知[2020/12/10 11:44:42][error][io\u tls]flb\u io\u tls.c:359 net-对等端重置了连接[2020/12/10 11:44:42][warn][engine]未能刷新区块“1-1607600678.900285114.flb”,请在10秒内重试:task\u id=0,输入=向前.0>输出=es.1
在cloudwatch上获取这些错误,同时使用fluent bit和firelens设置ecs fargate集群,同时将日志路由到amazonElasticSearch。你知道怎么解决这个问题吗?我正在为设置使用以下任务定义:-

{
"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"

            }
        }
    }
]

}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题