Skip to main content

How do I add a filter to the Notify Log

  • September 2, 2014
  • 0 replies
  • 0 views

Product: OpenFusion log service

Version: 2.1 and above

 

Description:

How do I add a filter to the Notify Log?

When adding the following filter constraint with the Log Manager (for NotifyLog) in the "Settings Misc" menu it has no effect and the consumer keeps receiving all notifications:

$.info.header.variable_header[1].value > 5

 

Solution:

1.  The constraint $.info.header.variable_header[1].value > 5 is only valid when carrying out a query, however when adding a filter this needs to have the following form:

$.header.variable_header[1].value > 5

2. When starting the Log Service and bringing up the LogManager for NotifyLog the NotifyLogFactory is available on the left hand side and the window with the Misc tab on the right hand side. Going to the filter constraints here and adding the above constraint, this will be applied to any further logs that are created using the GUI. If a log is created programmatically it will not be affected.

This can be tested by adding a constraint and creating a log by right clicking on the NotifyLog factory. Once the log has been created clicking on it, and choosing the Settings tag and when this window appears choosing the Misc tag the filter constraints which have been added to the NotifyLogFactory should be visible here.

3. To set the constraints on a Log which has already been created click on the log, choose the Settings tag and then the Misc tag. The constraint is added to the log in this window. Once this has been done records can be added to the log and the constraint should take effect.


#logservice
#OpenFusion
#KnowledgeDocs