This feature is not AEM as a Cloud Service compatible, and can only be used on AEM 6.5.
Purpose
This EventLogger service provides a configurable bridge between the OSGi Event mechanism and the SLF4j/Logback facility. Events for an arbitrary set of topics matching an arbitrary event filter can be logged to an arbitrary category at an arbitrary log level, in a JSON format. Used in conjunction with the SyslogAppender, the EventLogger allows sysadmins to send a structured OSGi event data stream to an external log aggregator for further post-processing.
How to Use
Create a config at /apps/system/config/com.adobe.acs.commons.logging.impl.JsonEventLogger-RESOURCE.xml with the following to start sending Resource events as JSON messages to the osgi.events.resourcelogging category at the INFO level:
Then use an Apache Sling Logging Logger configuration to enable logging for that category:
The log file output will look something like this:
Finally, use a SyslogAppender to stream those messages to a remote aggregation server: