This article shows how to search for broker-related events in a specific ActiveMQ broker using the REST API.
Search ActiveMQ Broker Events
GET /activemq/brokers/{nodeName}/{managerName}/{brokerName}/events
Searches events on a given ActiveMQ broker.
Example Request
curl -X 'GET' \ 'http://<hostname>:8019/rest/v1/activemq/brokers/CMACTIVEMQ/Activemq-server/DemoBroker/events' \ -H 'accept: application/json' \ -H 'Authorization: Basic QWRtaW46YWRtaW4='
Query Parameters
| Parameter | Type | Description |
|---|---|---|
eventType |
string | Event type. Available values: None, All, Manager, Alter, QMgr, Channel, Performance, Config, Command, Schedule, Bridge, Logger |
timestamp |
integer | Event timestamp (used for validating if the event has expired). |
limit |
integer | Limit of the number of events returned. |
attributes |
string | A comma-separated list of attributes or attribute sections to retrieve. |
validateAccessForUser |
string | Validate endpoint access for the user. |
Response Codes
200 OK – Returns a list of matching event objects.
* – Error response, returns ErrorPojo.
Response Header
200 OK – Event list returned successfully.
[
{
"wgsName": "MQM",
"type": "Alter",
"eventNo": 811
},
{
"wgsName": "MQM",
"type": "Alter",
"eventNo": 753
},
{
"wgsName": "MQM",
"type": "Alter",
"eventNo": 724
}
]