To add OccurrenceCount to the events database in the Solution Pack for EMC Smarts Events
mysql> ALTER TABLE events_live ADD `OccurrenceCount` bigint(20) DEFAULT NULL;
mysql> ALTER TABLE events_archive ADD `OccurrenceCount` bigint(20) DEFAULT NULL
;
<field field="OccurrenceCount" data-type="LONG" xsi:type="DefaultFieldMapping"/>
/opt/APG/Event-Processing/Generic-Live-Writer/<instance>/conf/my-smarts-live.xml
/opt/APG/Event-Processing/Generic-Live-Writer/<instance>/conf/my-smarts-archive.xml
/opt/APG/Event-Processing/Generic-Live-Writer/<instance>/conf/ds-smarts-live.xml
/opt/APG/Event-Processing/APG-Datastore-Writer/<instance>/conf/ds-smarts-archive.xml
Update the frontend property mapping configuration so that this new property can be used in the frontend reports. To do this, add the following configuration to the FLOW-RPE2.xml file (/opt/APG/Custom/WebApps-Resources/<instance>/property-mapping/FLOW-RPE2.xml):
<property name="com.watch4net.apg.v2.modules.database.GenericFlow.properties.StringValue">
<name class="string">OccurrenceCount</name>
<table class="string">${table}</table>
<display-name class="string">occurrenctCount</display-name>
</property>
/opt/APG/bin/manage-modules.sh service restart event-processing-manager <instance>
/opt/APG/bin/manage-modules.sh service restart tomcat <instance>