You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PIXIU_ALARM_COMMON The used (?<quota_used_type>%{WORD}) \(%{PIXIU_QUOTA_SIZE_TYPE}\) of (?:the )?quota \(type (?<quota_type>%{WORD}) quota(?:, %{PIXIU_ALARM_USER_TYPE})?\) of dtree \(name (?<dtree>%{NOTSPACE}), ID (?<dtree_id>%{NUMBER:int})\) at %{UNIXPATH:path} in namespace \(name (?<namespace>%{NOTSPACE}), ID (?<namespace_id>%{NUMBER:int})\)
17
+
PIXIU_ALARM_COMMON The used (?<quota_used_type>%{WORD}) \(%{PIXIU_QUOTA_SIZE_TYPE}\) of (?:the )?quota \(type (?:UNIX )?(?<quota_type>%{WORD}) quota(?:, %{PIXIU_ALARM_USER_TYPE})?\) of (%{PIXIU_ALARM_COMMON_OLD}|%{PIXIU_ALARM_COMMON_NEW})
18
+
19
+
PIXIU_ALARM_COMMON_OLD dtree \(name (?<dtree>%{NOTSPACE}), ID (?<dtree_id>%{NUMBER:int})\) at %{UNIXPATH:path} in namespace \(name (?<namespace>%{NOTSPACE}), ID (?<namespace_id>%{NUMBER:int})\)
20
+
21
+
PIXIU_ALARM_COMMON_NEW namespace \(name (?<namespace>%{NOTSPACE}), ID (?<namespace_id>%{NUMBER:int})\), dtree \(name (?<dtree>%{NOTSPACE}),\s?ID (?<dtree_id>%{NUMBER:int})\), or path %{UNIXPATH:path}\)?
Copy file name to clipboardExpand all lines: tests/data/pixiu
+35-3Lines changed: 35 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -180,14 +180,14 @@ data = [
180
180
},
181
181
},
182
182
{
183
-
"raw": "<187>Aug 20 19:40:26 C4STO01-Node1 alarm[2613490]: <186>2023-08-20 19:32:24 DST 2023-08-20 19:40:26 DST 172.19.104.10 OceanStor-Distributed-Storage 259045 0xFEA6A000F Major(2): The used space (6638MB) of quota (type user quota, user name, owner name vsc10042) of dtree (name 100, ID 8193) at /100 in namespace (name user, ID 70) reaches to the space soft quota of (6144MB).",
183
+
"raw": "<188>Oct 20 20:35:17 C4STO01-Node1 alarm[53019]: <188>2024-10-20 20:35:17 DST OceanStor-Distributed-Storage 2171251 0xFEA6A000F Warning(1): The used space (8191MB) of the quota (type UNIX user quota, user name, owner name vsc10042) of namespace (name user, ID 70), dtree (name 100, ID 8193), or path /100 reaches the space soft quota of (6144MB).",
184
184
"expected": {
185
185
"@source_host": "C4STO01-Node1",
186
186
"program": "alarm",
187
-
"alarm_severity": "Major",
187
+
"alarm_severity": "Warning",
188
188
"alarm_object": "OceanStor-Distributed-Storage",
189
189
"alarm_id": "0xFEA6A000F",
190
-
"used_space": 6638000000,
190
+
"used_space": 8191000000,
191
191
"quota_used_type": "space",
192
192
"quota_type": "user",
193
193
"username": "vsc10042",
@@ -200,6 +200,27 @@ data = [
200
200
"path": "/100",
201
201
},
202
202
},
203
+
{
204
+
"raw": "<188>Oct 20 20:32:56 C4STO01-Node1 alarm[53019]: <188>2024-10-20 20:32:56 DST OceanStor-Distributed-Storage 2171198 0xFEA6A0011 Warning(1): The used space (8192MB) of the quota (type UNIX user quota, user name, owner name vsc10042) of namespace (name user, ID 70), dtree (name 100,ID 8193), or path /100) reaches or approaches to the hard space quota of (8192MB). The user or user group will fail to write data.",
205
+
"expected": {
206
+
"@source_host": "C4STO01-Node1",
207
+
"program": "alarm",
208
+
"alarm_severity": "Warning",
209
+
"alarm_object": "OceanStor-Distributed-Storage",
210
+
"alarm_id": "0xFEA6A0011",
211
+
"used_space": 8192000000,
212
+
"quota_used_type": "space",
213
+
"quota_type": "user",
214
+
"username": "vsc10042",
215
+
"dtree": "100",
216
+
"dtree_id": 8193,
217
+
"namespace": "user",
218
+
"namespace_id": 70,
219
+
"quota_limit_type": "hard",
220
+
"quota_space_limit": 8192000000,
221
+
"path": "/100",
222
+
},
223
+
},
203
224
{
204
225
"raw": "<190>Feb 27 12:04:21 HKSTO03-Node1 alarm[1266782]: <189>2024-02-27 12:04:21 172.19.96.130 OceanStor-Distributed-Storage 543842 0x200F002A0015 Informational(8): User (user name adm_wpoelmans) succeeded in logging in from source (172.18.124.113).",
0 commit comments