diff --git a/src/Logs/HttpAccessLog.php b/src/Logs/HttpAccessLog.php index 921c1427..ed8bdfea 100644 --- a/src/Logs/HttpAccessLog.php +++ b/src/Logs/HttpAccessLog.php @@ -11,7 +11,7 @@ class HttpAccessLog extends Log { public static string $name = 'HTTP Access'; public static string $levelClass = HttpStatusCodeLevel::class; - public static string $regex = '/(?P\S+) (?P\S+) (?P\S+) \[(?P.+)\] "(?P\S+) (?P\S+) (?P\S+)" (?P\S+) (?P\S+) "(?P[^"]*)" "(?P[^"]*)"/'; + public static string $regex = '/(?P\S+) (?P\S+) (?P\S+) \[(?P.+)\] "(?P\S+) (?P\S+) (?P\S+)"( (?P\S+))?( (?P\S+))?( "(?P[^"]*)")?( "(?P[^"]*)")?/'; public static string $regexLevelKey = 'status_code'; public static array $columns = [ ['label' => 'Datetime', 'data_path' => 'datetime'],