Querying AWS Cloudwatch Log Group Subscriptions Using boto3

Within AWS CloudWatch it is possible to add Subscriptions to a Log group so that logs within the group can flow to Kinesis, Firehose, etc. These subscriptions can be viewed in the console:

enter image description here

How can the 'Subscriptions' values be queried using boto3?

I have tried the following

import boto3
client = boto3.client('logs', region_name='us-east-1')
client.describe_log_groups()

But that only returns the following attributes (note: specific values have been redacted):

{'logGroups': [{'logGroupName': '<myGroupNameValue>',   
   'creationTime': <myCreationTimeValue>,    'metricFilterCount': 0,
   'arn': '<myArnValue>', 
   'storedBytes': <myStoredBytesValue>},
   ...]}

The returned json does not include a 'subscriptions' key/value pair.

Thank you in advance for your consideration and response

Upvotes: 1

Views: 296

Answers (1)

Related Questions