File size: 524 Bytes
700aa07
 
 
 
 
 
 
 
 
 
 
 
 
 
a039a4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import re
import sys
import os

def detect_log_type(log_data):
    if "device_name" in log_data and "src_ip" in log_data and "dst_ip" in log_data:
        return "sophos"
    elif "userPrincipalName" in log_data and "ipAddress" in log_data:
        return "azure-sign-in"
    elif "src" in log_data and "dest" in log_data and "severity" in log_data:
        return "palo-alto"
    elif "UserId" in log_data and "ClientIP" in log_data and "Operation" in log_data:
        return "office365"
    else:
        return "Unknown"