How to filter an Event report by Spectrum event type in JasperReports
search cancel

How to filter an Event report by Spectrum event type in JasperReports

book

Article ID: 137433

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

How to create an event report filtered by Spectrum event type

Environment

DX NetOps 20.2+ Spectrum
CABI JasperServer 6.4.3 or later

Resolution

You can create an event filter file in the Spectrum custom directory on the OneClick server:

$SPECROOT/custom/repmgr/config/events/

For example, for Spectrum Event Type 0x10d35, create an XML file called 10d35.xml with the following contents:

<filter xmlns="http://www.aprisma.com"

 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

 xsi:schemaLocation="http://www.aprisma.com ./event-filter.xsd">

<event_type>0x10d35</event_type>

</filter>


In the JasperReports Detailed Event Log: Group report you will see the new filter:



Or you can create an Ad Hoc (custom) report in JasperReports.




Select "Event Domain" and click on Choose Data...



Select the following Source (Created On, Event, Event  Type, Model Name)



In Pre-filters select the Event Type and filter by 10d35 (for instance), then click on OK button.

 

Change to Table (default is Crosstab)