All Apps and Add-ons

Splunk Add-on for VPC logs on AWS GovCloud

New Member

I'm trying to ingest VPC logs into Splunk using the Splunk add-on for AWS 2.0.1. My VPC logs are in GovCloud, but GovCloud isn't an option on the "Add AWS CloudWatch Logs Input" dialog. Is AWS GovCloud VPC logs supported for Splunk?

Tags (1)
0 Karma


This looks like its a limitation of the AWS boto library. When you add an input using the AWS add-on, Splunk uses a REST endpoint to list the regions for the particular service you're selecting. That Splunk REST endpoint is using the Python boto library to list out the regions:

elif['aws_service'][0] in ('cloudwatch-logs', 'cloudwatchlog', 'cloudwatchlogs'):
            import boto.logs
            regions = boto.logs.regions()

Running this bit of python code in the REPL shows:

>>> import boto.logs
>>> regions = boto.logs.regions()
>>> print regions
[RegionInfo:us-east-1, RegionInfo:ap-northeast-1, RegionInfo:ap-northeast-2, RegionInfo:ap-southeast-1, RegionInfo:ap-southeast-2, RegionInfo:us-west-2, RegionInfo:us-west-1, RegionInfo:eu-central-1, RegionInfo:eu-west-1]

As opposed to the same command for Cloudwatch metrics (notice us-gov-west-1 is listed):

>>> import boto.ec2.cloudwatch
>>> regions = boto.ec2.cloudwatch.regions()
>>> print regions
[RegionInfo:us-east-1, RegionInfo:cn-north-1, RegionInfo:ap-northeast-1, RegionInfo:ap-southeast-2, RegionInfo:sa-east-1, RegionInfo:ap-southeast-1, RegionInfo:ap-northeast-2, RegionInfo:us-west-2, RegionInfo:us-gov-west-1, RegionInfo:us-west-1, RegionInfo:eu-central-1, RegionInfo:eu-west-1]
0 Karma
Get Updates on the Splunk Community!

Observability Highlights | January 2023 Newsletter

 January 2023New Product Releases Splunk Network Explorer for Infrastructure MonitoringSplunk unveils Network ...

Security Highlights | January 2023 Newsletter

January 2023 Splunk Security Essentials (SSE) 3.7.0 ReleaseThe free Splunk Security Essentials (SSE) 3.7.0 app ...

Platform Highlights | January 2023 Newsletter

 January 2023Peace on Earth and Peace of Mind With Business ResilienceAll organizations can start the new year ...