document how to use elasticsearch events