Skip to content

Unable to connect to opensearch using "aws-elasticsearch-service" plugin #80

@hasinireddy24

Description

@hasinireddy24

2022-04-01 07:23:19 +0000 [error]: #0 unexpected error error_class=Aws::Errors::NoSuchProfileError error="Profile `default' not found in /root/.aws/credentials or /root/.aws/config"

I'm using the "aws-elasticsearch-service" plugin in my fluentd configuration

<match kubernetes>
        @type aws-elasticsearch-service
        ssl_verify false
        @log_level debug
        logstash_format true
        logstash_prefix jb-app-log-java # defaults to "logstash"
        logstash_prefix_separator -     # defaults to "-"
        logstash_dateformat %Y.%m       # defaults to "%Y.%m.%d" 
        <endpoint>
          url    "https://xxxxxxxx"
          region "xxxxxxxx"          
        </endpoint>
        <buffer>
          @type memory
        </buffer>
      </match>

I'm not using any other credentials in my configuration. Ideally it should use the EC2 instance node role to connect to opensearch.

I deployed the fluentd in EKS.

When I try to connect with "opensearch" plugin I was able to connect without any credentionals i have connected only with the node role. But with the "opensearch" plugin I'm getting "The security token included in the request is expired". So I'm trying to switch to aws-elasticsearch plugin.

Please help me with the solution.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions