ERROR fetch_detailed_report:109 - Failed to get file from s3: S3ResponseError: 400 Bad Request
stremetznet opened this issue · comments
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
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.
Hello. I already upgraded to version 2.0.5.
Have been using the example aws.yaml file
Looks like that:
accounts:
- account_number : 123456789
billing_bucket : my bucket
aws_access_key : XXXXXXXXXXXXXXXXX
aws_secret_key : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And you have put your account number into the account number space?
Do you know how to check your account number?
Account number is found in the account settings on AWS console?
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.
Verified. Was set correctly
2015-05-27 08:55:48,911 ERROR fetch_detailed_report:109 - Failed to get file from s3: S3ResponseError: 400 Bad Request
OK, I will send you a debug version of that file - so you can run it and collect the logs for me.
Wonderful.
Where can I download it??