Skip to main content
FortiKoala
Staff
Staff
Mar 1, 2019 5:21 PM UTC

Technical Note: ZoneFox 3 - EPL documentation - for creating custom rules

  • Apr 16, 2026 1:53 PM UTC
  • 0 replies
  • 936 views
  • Translate All
Description

EPL documentation - for creating custom rules


Scope

FAQ


Solution

The EPL in ZoneFox uses NEsper, the documentation can be accessed here, chapter 5 covers the EPL.


Some of the rules provided with ZoneFox use EPL, these can be reviewed for examples of code.  E.g the User login out of hours:


select * from pattern [every ae1=ActivityEvent ( NOT User.StartsWith('window manager__dwm', StringComparison.InvariantCultureIgnoreCase), NOT User.StartsWith('nt authority', StringComparison.InvariantCultureIgnoreCase), Activity = 'user logged on', OccurredOn.getDayOfWeek() = DayOfWeek.Saturday OR OccurredOn.getDayOfWeek() = DayOfWeek.Sunday OR OccurredOn.getHourOfDay() >= 22 OR OccurredOn.getHourOfDay() <= 6)]



Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024