monk-ee / SplunkAppforAWSBilling

8 stars 3 forks source link

ERROR fetch_detailed_report:109 - Failed to get file from s3: S3ResponseError: 400 Bad Request #2

Closed stremetznet closed 8 years ago

stremetznet commented 9 years ago

I have been able to install the AWSBilling App for Splunk, but was never able to fetch the reports from my S3 bucket.

When using the awscli, I can verify that I'm able to access my bucket and the files in it, using the security credentials I set in the was.yaml file for the BillingApp.

I have been trying to do manual fetches via /opt/splunk/bin/splunk cmd python /opt/splunk/etc/apps/SplunkAppforAWSBilling/bin/fetch_detailed_report.py

But it takes just a second and shows the error written in the subject.

Please assist.

Thank you

monk-ee commented 9 years ago

Can you please let me know what version you are using? It would be better to upgrade to 2.0.5 and try again, as it has many functional improvements.

If the keys are correct, it seems to me that your account number in the aws.yaml file could be wrong.

stremetznet commented 9 years ago

Hello. I already upgraded to version 2.0.5. Have been using the example aws.yaml file

stremetznet commented 9 years ago

Looks like that:

accounts:

monk-ee commented 9 years ago

And you have put your account number into the account number space?

monk-ee commented 9 years ago

Do you know how to check your account number?

stremetznet commented 9 years ago

Account number is found in the account settings on AWS console?

stremetznet commented 9 years ago

Is there a way of doing a step by step debugging? The logs are not so much informative. I have been trying with awscli to access my bucket, that works fine.

monk-ee commented 9 years ago

To check your account number id correct go to the billing section in the AWS web console on go to "Account Settings". The number where the big pink arrow is pointing is your account number/id. That is the number you need to use in the aws.yaml file

image

stremetznet commented 9 years ago

Verified. Was set correctly

stremetznet commented 9 years ago

2015-05-27 08:55:48,911 ERROR fetch_detailed_report:109 - Failed to get file from s3: S3ResponseError: 400 Bad Request

monk-ee commented 9 years ago

OK, I will send you a debug version of that file - so you can run it and collect the logs for me.

stremetznet commented 9 years ago

Wonderful.

stremetznet commented 9 years ago

Where can I download it??