ccsdevio / saferAWS

4 stars 0 forks source link

TODO: logging isn't working for log-all-unauthorized-activity #2

Closed manach closed 2 years ago

manach commented 2 years ago

It wasn't getting named

manach commented 2 years ago

Idea: seed the log group with https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/logs.html#CloudWatchLogs.Client.put_log_events

manach commented 2 years ago

How to handle missing uploadSequenceToken: for log in response['logStreams']: ... try: ... print(log['uploadSequenceToken']) ... except KeyError: ... print('no upload token exists')

Also, will need put_log_stream

manach commented 2 years ago

CLOOOOOOOOOOOOOOSED