All Apps and Add-ons

AWS App: Unable to select region during VPC Flow Log config

brettcave
Builder

I am trying to configure the Splunk App for AWS app with VPC Flow Log monitoring. From the Configure screen, I select the configured AWS account and in the next section, when I select the drop-down for Region, it looks like the UI does an async call fetching options and then greys out with no regions populated.

I have configured inputs for Config, CloudTrail and MetaData successfully and permissions via IAM are configured as per the guide. I was previously using VPC Flow logs successfully with this user without any changes in IAM but had to uninstall the app and re-install it (Splunk Add-On for AWS was also upgraded from 2.x.x to 3.0.0).

Here's what the empty "Regions" select box looks like:
alt text

How can I configure this input? (even if I can configure manually in the config files for now if this is a UI bug...)

Edit More info - seems like a bug around authentication and/or timestamps.

Following what aws_log_groups_handler.py does from the app, I found the following entries in var/log/splunk/saas_app_aws.log:

2016-04-07 12:39:59,125 [INFO] [aws_log_groups_handler.py] action 2 name None args {'target': ['127.0.0.1'], 'aws_account': ['MyAccount']}
2016-04-07 12:39:59,125 [INFO] [base_handler.py] get target service 127.0.0.1
2016-04-07 12:39:59,144 [INFO] [local_manager.py] app splunk_app_aws, owner nobody, host 127.0.0.1, port 8089
2016-04-07 12:39:59,147 [INFO] [target_manager.py] get_target 127.0.0.1
2016-04-07 12:39:59,147 [INFO] [target_manager.py] local_splunk_host 127.0.0.1
2016-04-07 12:39:59,147 [INFO] [base_handler.py] target service props {'owner': 'nobody', 'port': '8089', 'app': 'Splunk_TA_aws', 'scheme': 'https', 'host': '127.0.0.1', 'token': 'redacted'}
2016-04-07 12:40:00,096 [ERROR] [aws_utils.py] JSONResponseError: 400 Bad Request
{u'__type': u'InvalidSignatureException', u'message': u'Signature expired: 20160407T103959Z is now earlier than 20160407T104044Z (20160407T104544Z - 5 min.)'}
2016-04-07 12:40:00,096 [ERROR] [aws_utils.py] {u'__type': u'InvalidSignatureException', u'message': u'Signature expired: 20160407T103959Z is now earlier than 20160407T104044Z (20160407T104544Z - 5 min.)'}

These errors are repeated for each region. It looks like an authentication issue between Splunk app and the Splunk add-on....

Tags (1)
0 Karma
1 Solution

brettcave
Builder

Server time was wrong by about 7 minutes so calls to AWS API were failing authentication.

Updated the date and things started working.

View solution in original post

0 Karma

brettcave
Builder

Server time was wrong by about 7 minutes so calls to AWS API were failing authentication.

Updated the date and things started working.

0 Karma
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 ...