Ejemplo n.º 1
0
def contains_logzio_authentication_token(line):
    if not utils.contains_regex(logzio_auth_token, line):
        return False
    exp = line.split('.')[1]
    if not utils.contains_regex(logzio_shipping_token_regex, exp):
        return False
    if not utils.contains_lower_and_upper(exp):
        return False
    return True
Ejemplo n.º 2
0
def contains_aws_access_key(line):
    if not utils.contains_regex(aws_access_key_regex, line):
        return False
    return True
Ejemplo n.º 3
0
def contains_logzio_api_token(line):
    if not utils.contains_regex(logzio_api_token_regex, line):
        return False
    return True
Ejemplo n.º 4
0
def contains_logzio_shipping_token(line):
    if not utils.contains_regex(logzio_shipping_token_regex, line):
        return False
    if not utils.contains_lower_and_upper(line):
        return False
    return True