diff --git a/files/pixiu b/files/pixiu index 9345add..b2252aa 100644 --- a/files/pixiu +++ b/files/pixiu @@ -6,7 +6,7 @@ PIXIU_NGINX \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG} %{IPORHOST:clientip} (? PIXIU_TOMCAT \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG} \[%{HTTPDATE:timestamp}\]\^%{IPORHOST:clientip}\^%{HTTPDUSER:auth}\^%{WORD:verb} %{NOTSPACE:request} HTTP/%{NUMBER:httpversion}\^%{GREEDYDATA:other} -PIXIU_ALARM_PREFIX \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG}: .+ (?OceanStor-Distributed-Storage)\s+%{NUMBER} (?0x[A-F0-9]+) (?%{WORD})\(%{NUMBER:alarm_severity_level}\): +PIXIU_ALARM_PREFIX \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG}: .+ (?(OceanStor-Distributed-Storage|Cluster-Nexus))\s+%{NUMBER} (?0x[A-F0-9]+) (?%{WORD})\(%{NUMBER:alarm_severity_level}\): PIXIU_ALARM_USER_TYPE user name, owner name %{USERNAME:username} diff --git a/tests/data/pixiu b/tests/data/pixiu index 8f8c595..0f244a7 100644 --- a/tests/data/pixiu +++ b/tests/data/pixiu @@ -435,4 +435,22 @@ data = [ "path": "/", }, }, + { + "raw": "<187>Oct 1 08:17:01 NEX-STOR-PIX-1A alarm[3966612]: <186>2025-10-01 08:16:59 DST Cluster-Nexus 5965446 0xFEA6A000E Major(1): The used space (943824MB) of quota (type directory quota) of dtree (name --, ID 0) at / in namespace (name diab -preklin, ID 1025) reaches to the space soft quota of (943718MB).", + "expected": { + "program": "alarm", + "quota_used_type": "directory", + "alarm_object": "Cluster-Nexus", + "namespace": "diab -preklin", + "namespace_id": 1025, + "dtree": "--", + "dtree_id": 0, + "used_space": 989671194624, + "quota_used_type": "space", + "quota_type": "directory", + "quota_limit_type": "soft", + "quota_space_limit": 989560045568, + "path": "/", + }, + }, ]