Background

JEMH Audit History saves a copy of the email to disk, allowing further processing (as of JEMH 1.4.7!)

Scenario

Audit History has collected a range of processing failures for a number of reasons:

What Does It Do

Re-processing uses some (currently) hard-coded matching rules to determine what should be Reprocessed.  A Reprocessed Audit History entry may or may not be marked 'Processed'.  Currently the following Reprocessing options are available:

Configuring

The new Reprocessing panel in the JEMH Auditing screen looks like this:

The top form allows some rudimentary parameters to be set:

Contents of the form must be saved before any related operations will work.

 

The lower half shows a status window. The three operation buttons are:

NOTE:

  • Execution may take considerable time, picking a lower MAX ID initially will limit the period of loading

  • Every record processed will re-recreate a new Audit History record, including a copy of the related email.  Watch disk consumption if processing large volumes of email.

  • If an email is processed due to rule matching, its audit history entry will be updated, indicating it is Reprocessed, and will refer to the new Audit Event ID that was the result of the reprocessing.

Automated reprocessing

Here is an example Audit History view, showing a few exceptions and a contrived buggy outcome entry:

Noting the maxId involved, the Reprocessing form is updated to reflect (Max ID of 230), and setting the rule type to withException (must be applied).

Checking rule matches

Click the Test button to run the rule and see the amount records that matched, note that 3 were found as shown below.

Download match list

For sanity, the matches can be downloaded as CSV by clicking the Export button:

Running the reanimation

Running the reanimation is just a click on the Run now button:

The process will be started in the background and a progress bar will by dynamically updated in the background:

Refreshing the page will show the previous failed entries marked as Re-processed:

Manual Reprocessing

Its also possible to manually trigger reprocessing, but this doesn't 'clean up' the original entry as the rules driven reprocessing do

Monitoring through REST

When you have an active authorized http session, you can monitor what is going on through the browser:

http://server:8080/rest/jemh/1.0/api/auditing/reprocessing/status.json

Result:

{"auditId":0,"percent":0,"processingStatus":"notRunning","recordsProcessed":0,"recordsToProcess":0}

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues