Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/pixiu
Original file line number Diff line number Diff line change
Expand Up @@ -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}: .+ (?<alarm_object>OceanStor-Distributed-Storage)\s+%{NUMBER} (?<alarm_id>0x[A-F0-9]+) (?<alarm_severity>%{WORD})\(%{NUMBER:alarm_severity_level}\):
PIXIU_ALARM_PREFIX \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG}: .+ (?<alarm_object>(OceanStor-Distributed-Storage|Cluster-Nexus))\s+%{NUMBER} (?<alarm_id>0x[A-F0-9]+) (?<alarm_severity>%{WORD})\(%{NUMBER:alarm_severity_level}\):

PIXIU_ALARM_USER_TYPE user name, owner name %{USERNAME:username}

Expand Down
18 changes: 18 additions & 0 deletions tests/data/pixiu
Original file line number Diff line number Diff line change
Expand Up @@ -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": "/",
},
},
]