Skip to content

Commit 1f54853

Browse files
feat: Added support for more dell powerstore events (#2818)
1 parent efd606b commit 1f54853

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

package/enterprise/etc/conf.d/conflib/syslog/app-syslog-dell_powerstore.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ block parser app-syslog-dell_powerstore() {
1212
};
1313
application app-syslog-dell_powerstore[sc4s-network-source] {
1414
filter {
15-
match('\[PowerStore_audit_event@1139' value("MESSAGE"));
16-
};
15+
match('\[PowerStore_[A-Za-z_]+@1139' value("MESSAGE"));
16+
};
1717
parser { app-syslog-dell_powerstore(); };
1818
};

package/etc/conf.d/conflib/syslog/app-syslog-dell_powerstore.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ block parser app-syslog-dell_powerstore() {
1212
};
1313
application app-syslog-dell_powerstore[sc4s-network-source] {
1414
filter {
15-
match('\[PowerStore_audit_event@1139' value("MESSAGE"));
16-
};
15+
match('\[PowerStore_[A-Za-z_]+@1139' value("MESSAGE"));
16+
};
1717
parser { app-syslog-dell_powerstore(); };
1818
};

package/lite/etc/addons/dell/app-syslog-dell_powerstore.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ block parser app-syslog-dell_powerstore() {
1212
};
1313
application app-syslog-dell_powerstore[sc4s-network-source] {
1414
filter {
15-
match('\[PowerStore_audit_event@1139' value("MESSAGE"));
16-
};
15+
match('\[PowerStore_[A-Za-z_]+@1139' value("MESSAGE"));
16+
};
1717
parser { app-syslog-dell_powerstore(); };
1818
};

tests/test_dell_powerstore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# <110>Jan 31 19:48:25 APM00243620939-B [358]: 2025-01-31T19:48:16 APM00243620939-B PSb8ad27c26647 358@HM3CTZ3 Authentication [PowerStore_audit_event@1139 id="2349" user="EncryptHTTP.PSb8ad27c26647" resource_type="login_session" action="None" client_ip="None" appliance="APM00243620939" status="success"] Successfully authenticated cert_account : Dell EMC PowerStore CA P9XEU8F5/EncryptHTTP.PSb8ad27c26647.
2222
# <110>Jan 31 19:49:05 APM00243620939-B [358]: 2025-01-31T19:48:49 APM00243620939-B PSb8ad27c26647 358@HM3CTZ3 Config [PowerStore_audit_event@1139 id="2351" user="admin" resource_type="system_health_check" action="create" client_ip="10.114.173.252" appliance="APM00243620939" status="failed"] Failed to perform system health check on pki-tech-ps-p01.
2323
# <110>Jan 31 19:58:46 APM00243620939-B [358]: 2025-01-31T19:58:22 APM00243620939-B PSb8ad27c26647 358@HM3CTZ3 Logout [PowerStore_audit_event@1139 id="2352" user="admin" resource_type="login_session" action="delete" client_ip="10.114.173.252" appliance="APM00243620939" status="success"] User "admin" was successfully logged out.
24+
# <110>Jan 31 19:58:46 APM00243620939-B [358]: 2025-01-31T19:58:22 APM00243620939-B PSb8ad27c26647 358@HM3CTZ3 AlertEvent [PowerStore_remote_logging_alert@1139 sequence_number="52497" event_name="REMOTE_SUPPORT_CONNECTIVITY_STATUS_NORMAL" resource_type="remote_support" resource_name="SupportAssist" alert_id="ef7b021c-23a0-4821-8245-289cbdc7addd" alert_state="Cleared" appliance_name="rzpowerstore01-appliance-1" event_id="b320f9b7-c44e-bd39-ab56-8d278c69f6bb" event_code="0x00d00203" system_impact="None" repair_flow=""] Cluster connectivity is good. Appliance status: A1 Good.
2425

2526
test_cases = [
2627
"{{ mark }}{{ bsd }} {{ host }} [358]: {{ iso }} {{ host }} PSb8ad27c26647 358@HM3CTZ3 Authentication [PowerStore_audit_event@1139 id=\"2341\" user=\"admin\" resource_type=\"login_session\" action=\"None\" client_ip=\"10.114.173.252\" appliance=\"APM00243620939\" status=\"success\"] User \"admin\" logged in successfully.",
@@ -29,7 +30,7 @@
2930
"{{ mark }}{{ bsd }} {{ host }} [358]: {{ iso }} {{ host }} PSb8ad27c26647 358@HM3CTZ3 Authentication [PowerStore_audit_event@1139 id=\"2349\" user=\"EncryptHTTP.PSb8ad27c26647\" resource_type=\"login_session\" action=\"None\" client_ip=\"None\" appliance=\"APM00243620939\" status=\"success\"] Successfully authenticated cert_account : Dell EMC PowerStore CA P9XEU8F5/EncryptHTTP.PSb8ad27c26647.",
3031
"{{ mark }}{{ bsd }} {{ host }} [358]: {{ iso }} {{ host }} PSb8ad27c26647 358@HM3CTZ3 Config [PowerStore_audit_event@1139 id=\"2351\" user=\"admin\" resource_type=\"system_health_check\" action=\"create\" client_ip=\"10.114.173.252\" appliance=\"APM00243620939\" status=\"failed\"] Failed to perform system health check on pki-tech-ps-p01.",
3132
"{{ mark }}{{ bsd }} {{ host }} [358]: {{ iso }} {{ host }} PSb8ad27c26647 358@HM3CTZ3 Logout [PowerStore_audit_event@1139 id=\"2352\" user=\"admin\" resource_type=\"login_session\" action=\"delete\" client_ip=\"10.114.173.252\" appliance=\"APM00243620939\" status=\"success\"] User \"admin\" was successfully logged out."
32-
33+
"{{ mark }}{{ bsd }} {{ host }} [358]: {{ iso }} {{ host }} PSb8ad27c26647 358@HM3CTZ3 AlertEvent [PowerStore_remote_logging_alert@1139 sequence_number=\"52497\" event_name=\"REMOTE_SUPPORT_CONNECTIVITY_STATUS_NORMAL\" resource_type=\"remote_support\" resource_name=\"SupportAssist\" alert_id=\"ef7b021c-23a0-4821-8245-289cbdc7addd\" alert_state=\"Cleared\" appliance_name=\"rzpowerstore01-appliance-1\" event_id=\"b320f9b7-c44e-bd39-ab56-8d278c69f6bb\" event_code=\"0x00d00203\" system_impact=\"None\" repair_flow=\"\"] Cluster connectivity is good. Appliance status: A1 Good."
3334
]
3435

3536

0 commit comments

Comments
 (0)