import re import pandas as pd # Function to parse the log file def parse_log_file(file_path): with open(file_path, 'r') as file: log_entries = file.readlines() log_data = [] for entry in log_entries: timestamp_match = re.match(r'(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3})', entry) if timestamp_match: timestamp = timestamp_match.group(1) log_level = re.search(r'- (\w+) -', entry) url_match = re.search(r'HTTP Request: POST (.*?)"', entry) status_code = re.search(r'"HTTP/1.1 (\d{3})', entry) if log_level and url_match and status_code: log_level = log_level.group(1) url = url_match.group(1) status_code = status_code.group(1) if status_code == '429': h1_tag = re.search(r'