0

I'm using ESPER 5.1.0 in java to run analysis on log events (sender, message). I want to look for certain message patterns for each single sender. I intend to do this by defining a context. I managed to create the EPContextPartitionAdmin but I do not understand how and where I need to create the actual context.

Is there something like .createEPL() for a context definition? Or am I missing a point here.

Anthon
  • 69,918
  • 32
  • 186
  • 246
higgzz
  • 13
  • 2

1 Answers1

0

Yes a context is an EPL construct. You declare it via the "createEPL" API. For example:

admin.createEPL("create context Every5Minute start @now end after 5 minutes");
user3613754
  • 816
  • 1
  • 5
  • 5