STOMP
Integrate with brokers that speak STOMP (for example ActiveMQ-style setups). Add stomp with connection parameters and the queue or topic destination. Add stomp under alert: on your rule (you can combine destinations).
Field reference lives under Options; Full working example at the end shows full YAML (name, type, index, filter, and this destination).
Options
Keys below match the ElastAlert 2 alerter. Shared rule fields such as alert_subject apply as described in Subject & body. Example fragments from the ElastAlert 2 reference appear indented under the option they illustrate (add your own name, type, index, and filter to make a full rule).
Required
stomp_hostname— The STOMP host to use, defaults tolocalhost.
Example usage
alert:
- "stomp"
stomp_hostname: "localhost"
stomp_hostport: "61613"
stomp_login: "admin"
stomp_password: "admin"
stomp_destination: "/queue/ALERT"-
stomp_hostport— The STOMP port to use, defaults to61613. -
stomp_login— The STOMP login to use, defaults toadmin. -
stomp_password— The STOMP password to use, defaults toadmin.
Optional
stomp_destination— The STOMP destination to use, defaults to/queue/ALERTThe stomp_destination field depends on the broker, the /queue/ALERT example is the nomenclature used by ActiveMQ. Each broker has its own logic.
Full working example
name: Example alert for STOMP
type: any
index: "*-*"
filter:
- query:
query_string:
query: "level:error OR log.level:error"
alert:
- "stomp"
stomp_hostname: "localhost"
stomp_hostport: 61613
stomp_login: "admin"
stomp_password: "admin"
stomp_destination: "/queue/ALERT"