It is not possible to delete collected events in JBoss ON using JBoss ON CLI
Environment
- Red Hat JBoss Operations Network (JON) 3.3.2
- Red Hat JON Command Line Interface (CLI) 3.3.2
Issue
- We want to be able to remove all collected events from RHQ_EVENT table using JBoss ON CLI;
- I would like the syntax to delete all collected events for one resource or a list of them using JBoss ON CLI;
- It is not possible to delete collected events in JBoss ON using JBoss ON CLI
Resolution
This is a bug and it has been captured in the This content is not included.Red Hat Bugzilla 1258870. It will be fixed in a future releases of JBoss ON.
For now, the only way to delete collected events is to use "Purge All" button on the Events page for selected resource. Also, make sure that value of the parameter "Delete Events Older Than" is decreased:
JBoss ON -> Administration -> System Settings -> Data Manager Configuration Properties
as this way collected events will be deleted more frequently.
Root Cause
Methods:
int deleteEventsForContext(Subject subject, EntityContext context, List
eventIds);
int purgeEventsForContext(Subject subject, EntityContext context);
are not exposed in EventManagerRemote so it is not possible to delete events using JBoss ON CLI
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.