All Apps and Add-ons

Splunk App for AWS: Why is all_account_ids.csv not being created?

cmeo
Contributor

It's all in the question 🙂 The app is otherwise up and running quite happily, but all_account_ids.csv did not get created and every input that uses it shows 'Search produced no results'. This is fine as long as I have only one account active, but soon I'll have more.

It seems to me that aws_account_manager.py is supposed to create it, but doesn't. Anyone seen this problem before, and what can I do about it? Manually create with Lookup Editor, or some other way?

Thanks!

0 Karma

pchen_splunk
Splunk Employee
Splunk Employee

AWS app tries to fill AWS account ID every time when you are in configure page and the account ID is empty. You can try the following steps:

  1. Open splunk_app_aws/configure page, check if "Account ID" has value.
  2. If not, check all_account_ids.csv in "lookup" folder to see if it records your account ID.
  3. It should record your ID, otherwise, you can check splunkd.log and saas_app_aws.log to see if any exceptions popped.

If no account ID and error has been found, you can try to add it manually. You follow steps as czhang posted.

0 Karma

czhang_splunk
Splunk Employee
Splunk Employee

Hi cmeo,

Basically when you add an AWS account in Configure page of AWS App, the account id will be written into all_account_ids.csv. Have you seen any error when adding AWS account?

A quick and dirty workaround is: go to lookup folder under app dictionary and edit all_account_ids.csv manually.
The file format should be:

> name,account_id
> [your AWS account friendly name],[12-digit AWS account ID]

An example:

> name,account_id
> Calvin,000000000000

It would be great if you could go to Splunk/var/log/splunk/saas_app_aws.log to see if there is any error related to aws_account_manager.py

Hope this helps! Thanks!

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...