EFA notifies the subscribers on the following event or alert types:
By default, the subscribers receive all the event or alert types and users have the option to configure the filters during registration of subscribers. The filter option is applicable to both HTTPS and RELP subscribers.
Note
(efa:root)EFA-Server# efa notification subscribers add-https --help Register a new https webhook subscriber to the notification service. Usage: efa notification subscribers add-https [flags] Flags: --url string HTTPS URL for the webhook. (Required) --username string Username for basic auth. (Required) --password string Password for basic auth. (Optional, will prompt if missing) (default "<prompt>") --insecure Perform insecure SSL connection and transfers. (Optional) --cacert string Local path to the cacert pem file for SSL verification. (Optional, required if not insecure) --filter strings Comma separated filter values. Possible values are “DEVICE_EVENTS” - RAS/syslog events from devices, “APP_ALERTS” - fault alerts from application, “APP_EVENTS” - task events from application. If no filters are provided it means all types. E.g. --filters DEVICE_EVENTS,APP_ALERTS,APP_EVENTS. (Optional) --conn-timeout int Timeout to open a connection to the server (Optional) (default 10) --- Time Elapsed: 2.9506ms --- (efa:root)EFA-Server# efa notification subscribers add-syslog-relp --help Register a new RELP syslog subscriber to the notification service. Usage: efa notification subscribers add-syslog-relp [flags] Flags: --address string Address for syslog server in the format host:port (Required), Default port: 514 --insecure Perform insecure SSL connection and transfers. (Optional) --cacert string Local path to the cacert pem file for SSL verification. (Optional, required if not insecure) --conn-timeout int Timeout to open a connection to the server (Optional) (default 10) --filter strings Comma separated filter values. Possible values are “DEVICE_EVENTS” - RAS/syslog events from devices, “APP_ALERTS” - fault alerts from application, “APP_EVENTS” - task events from application. If no filters are provided it means all types. E.g. --filters DEVICE_EVENTS, APP_ALERTS,APP_EVENTS. (Optional) --rfc5424 Enable RFC5424 message format for syslog subscribers (Optional) (default: non-RFC5424 format) --- Time Elapsed: 2.581857ms ---
#efa notification subscribers add-https --url https://127.0.0.1:5000 --username jarvis --password vision --insecure --filter APP_ALERTS Successfully registered subscriber. +-----------+-------------------------------------------------------+ | attribute | value | +-----------+-------------------------------------------------------+ | id | 18 | +-----------+-------------------------------------------------------+ | handler | http | +-----------+-------------------------------------------------------+ | endpoint | https://127.0.0.1:5000 | +-----------+-------------------------------------------------------+ | config | {"cacert":"","filters":["APP_ALERTS"],"insecure":true,| | | "password":"vision","username":"jarvis"} | | +-----------+-------------------------------------------------------+ Notification Subscriber ID=18 --- Time Elapsed: 2.148580068s ---
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --filter APP_ALERTS,DEVICE_EVENTS Successfully registered subscriber. +-----------+--------------------------------------------------------+ | attribute | value | +-----------+--------------------------------------------------------+ | id | 19 | +-----------+--------------------------------------------------------+ | handler | relp | +-----------+--------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+--------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":["APP_ALERTS",| | | "DEVICE_EVENTS"],"insecure":true} | +-----------+--------------------------------------------------------+ Notification Subscriber ID=19 --- Time Elapsed: 2.172557257s ---
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure Successfully registered subscriber. +-----------+--------------------------------------------------------------+ | attribute | value | +-----------+--------------------------------------------------------------+ | id | 20 | +-----------+--------------------------------------------------------------+ | handler | relp | +-----------+--------------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+--------------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":[],"insecure":true} | +-----------+--------------------------------------------------------------+ Notification Subscriber ID=20 --- Time Elapsed: 2.042797885s ---