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
+67-6
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,27 @@ data = [
100
100
},
101
101
},
102
102
{
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).",
104
124
"expected": {
105
125
"@source_host": "C4STO01-Node1",
106
126
"program": "alarm",
@@ -160,14 +180,14 @@ data = [
160
180
},
161
181
},
162
182
{
163
-
"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).",
164
184
"expected": {
165
185
"@source_host": "C4STO01-Node1",
166
186
"program": "alarm",
167
-
"alarm_severity": "Major",
187
+
"alarm_severity": "Warning",
168
188
"alarm_object": "OceanStor-Distributed-Storage",
169
189
"alarm_id": "0xFEA6A000F",
170
-
"used_space": 6638000000,
190
+
"used_space": 8191000000,
171
191
"quota_used_type": "space",
172
192
"quota_type": "user",
173
193
"username": "vsc10042",
@@ -180,6 +200,27 @@ data = [
180
200
"path": "/100",
181
201
},
182
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
+
},
183
224
{
184
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