def get_log_name(log_group):
    """
        This will parse the log group to get the filename of the log. Benastalk creates log groups with the the filepath of
         the log, example: '/aws/elasticbeanstalk/env-name/var/log/eb-activity.log'.
        :param log_group: full or partial log group
        :return: the last string on the path, i.e. the filename
    """
    return log_group.split('/')[-1]