Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hasinireddy24 opened this issue Apr 1, 2022 · 0 comments

Comments

@hasinireddy24
Copy link

hasinireddy24 commented Apr 1, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant