Splunk Enterprise

S3 Could not find access_key and/or secret_key in a configuration file- How to solve this error?

emallinger
Communicator

Hello all,

I'm trying to connect my indexer cluster to an on premise s3 storage.

I'm using the master node to do it.

I've tested the access credentials with a standalone instance outside my cluster and it works.

 

Now, I'm trying to use 2 different apps to declare volume and index.

Like this :

.../master-apps/common_indexers/local/indexes.conf #volume stanza

[volume:bucket1]
storageType = remote
path = s3://bucket1
remote.s3.endpoint = https://mys3.fr
remote.s3.access_key = xx
remote.s3.secret_key = xx
remote.s3.signature_version = v2
remote.s3.supports_versionning = false
remote.s3.auth_region = EU

.../master-apps/common_indexes/local/indexes.conf #index stanza
[index1]
homePath = $SPLUNK_DB/$_index_name/db
thawedPath = $SPLUNK_DB/$_index_name/thaweddb
coldPath = $SPLUNK_DB/$_index_name/colddb
remotePath = volume:bucket1/$_index_name
 
When validating bundle, I have this error :
<bundle_validation_errors on peer> [Critical] Unable to load remote volume "bucket1" of scheme "s3" referenced by index "index1": Could not find access_key and/or secret_key in a configuration file [Critical] in environment variables or via the AWS metadata endpoint.
 
I don't understand what is wrong...
File precedence is respected. => ie volumes are read before indexes
I verified that splunk is owner of files and has correct access to the files.
 
I'm out of ideas.
 
Thank you in advance for your suggestions.
Regards,
 
Ema
Labels (1)
0 Karma
1 Solution

emallinger
Communicator

Ok, Here's the answer :

 

The access_key need to be encrypted on each indexer separately after disribution with cluster master.

So it only seems to work if you first write it on the master "clear", then apply the bundle.

View solution in original post

0 Karma

emallinger
Communicator

Ok, Here's the answer :

 

The access_key need to be encrypted on each indexer separately after disribution with cluster master.

So it only seems to work if you first write it on the master "clear", then apply the bundle.

0 Karma

emallinger
Communicator

Any idea ? Anyone ?

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...