Graylog2 / Graylog2/graylog-plugin-integrations

Not able to create AWS Cloudwatch Input in graylog with authentication type as “Key & Secret” and how to add multiple aws accounts

Open
#519 5 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
Java
Stars
17
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Hi All,

I am running graylog version 3.3.0 with elastic 6.8.1 & mongo 3.6.17 in my environment as helm chart and I am trying create new input (AWS Kinesis/CloudWatch Input with authentication type as “Key & Secret”

but after entering the AWS key and secret in graylog, I am getting the below error,

`Unable to load credentials from any of the providers in the chain AwsCredentialsProviderChain(credentialsProviders=[SystemPropertyCredentialsProvider(), EnvironmentVariableCredentialsProvider(), WebIdentityTokenCredentialsProvider(), ProfileCredentialsProvider(), ContainerCredentialsProvider(), InstanceProfileCredentialsProvider()]) : [SystemPropertyCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., EnvironmentVariableCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., WebIdentityTokenCredentialsProvider(): Either the environment variable AWS_WEB_IDENTITY_TOKEN_FILE or the javaproperty aws.webIdentityTokenFile must be set., ProfileCredentialsProvider(): Profile file contained no credentials for profile ‘default’: ProfileFile(profiles=), ContainerCredentialsProvider(): Cannot fetch credentials from container - neither AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variables are set., InstanceProfileCredentialsProvider(): Unable to parse Json String.]
`

Note:- I have also tried by adding the credentials in on AWS Plugin Configuration but it didnt worked out and still throwing the same error.

But I did tried by adding the credentials in the envrionment variables and it was working fine without any issues.

Two questions:-

1. Why there is an error throwing in graylog after giving key and secret in UI itself?

2. If I add the credentials in environment variables how can I add multiple AWS account credentials to the graylog?
How this plugin will support multiple AWS configuration?

Please share your thoughts.

Thanks,
Ganeshbabu R

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.