This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Using boto3, instead of awscli, to tail logs. | |
Based on https://github.com/aws/aws-cli/blob/v2/awscli/customizations/logs/tail.py | |
and | |
https://gist.github.com/alanyee/601f995bfd6acfd4c3c16ee7e9115ab5 | |
""" | |
from collections import defaultdict | |
import time | |
import re | |
from botocore.utils import parse_timestamp, datetime2timestamp |