Skip to content

Commit 758567a

Browse files
committed
fixes for 8.2.0, part 1
1 parent 44d7879 commit 758567a

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

files/pixiu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ PIXIU_NGINX \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG} %{IPORHOST:clientip} (?
66

77
PIXIU_TOMCAT \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG} \[%{HTTPDATE:timestamp}\]\^%{IPORHOST:clientip}\^%{HTTPDUSER:auth}\^%{WORD:verb} %{NOTSPACE:request} HTTP/%{NUMBER:httpversion}\^%{GREEDYDATA:other}
88

9-
PIXIU_ALARM_PREFIX \s*%{IPORHOST:syslog_hostname} %{SYSLOGPROG}: .+%{IPORHOST} (?<alarm_object>OceanStor-Distributed-Storage)\s+%{NUMBER} (?<alarm_id>0x[A-F0-9]+) (?<alarm_severity>%{WORD})\(%{NUMBER:alarm_severity_level}\):
9+
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}\):
1010

11-
PIXIU_ALARM_USER_TYPE user name, owner name %{USERNAME:username}
11+
PIXIU_ALARM_USER_TYPE (?:UNIX )?user name, owner name %{USERNAME:username}
1212

1313
PIXIU_BYTES [0-9]+(?:K|M|G|T|P)?B
1414

tests/data/pixiu

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,27 @@ data = [
100100
},
101101
},
102102
{
103-
"raw": "<187>Aug 20 20:18:25 C4STO01-Node1 alarm[2613490]: <186>2023-08-20 20:18:25 DST 172.19.104.10 OceanStor-Distributed-Storage 259068 0xFEA6A000E Major(1): The used files (1501) of quota (type directory quota) of dtree (name test1, ID 4101) at / in namespace (name admin, ID 71) reaches to the file quantity soft quota of (1000).",
103+
"raw": "<188>Oct 20 20:51:03 C4STO01-Node1 alarm[53019]: <188>2024-10-20 20:51:01 DST OceanStor-Distributed-Storage 2171540 0xFEA6A000B Warning(1): The used files (3000) of quota (type directory quota) of dtree (name test, ID 4101) at /test in namespace (name backups, ID 98) reaches or approaches to the file quantity hard quota of (3000). Data will fail to be written.",
104+
"expected": {
105+
"@source_host": "C4STO01-Node1",
106+
"program": "alarm",
107+
"alarm_severity": "Warning",
108+
"alarm_object": "OceanStor-Distributed-Storage",
109+
"alarm_id": "0xFEA6A000B",
110+
"used_files": 3000,
111+
"quota_type": "directory",
112+
"quota_used_type": "files",
113+
"dtree": "test",
114+
"dtree_id": 4101,
115+
"namespace": "backups",
116+
"namespace_id": 98,
117+
"quota_limit_type": "hard",
118+
"quota_files_limit": 3000,
119+
"path": "/test",
120+
},
121+
},
122+
{
123+
"raw": "<187>Aug 20 20:18:25 C4STO01-Node1 alarm[26190]: <186>2023-08-20 20:18:25 DST 172.19.104.10 OceanStor-Distributed-Storage 259068 0xFEA6A000E Major(1): The used files (1501) of quota (type directory quota) of dtree (name test1, ID 4101) at / in namespace (name admin, ID 71) reaches to the file quantity soft quota of (1000).",
104124
"expected": {
105125
"@source_host": "C4STO01-Node1",
106126
"program": "alarm",

0 commit comments

Comments
 (0)