Log OSGi Configuration Changes
I want to log following information when any changes are made to an OSGi Configuration
- What configuration was changed
- Who changed the configuration
- What configuration values were updated and what the updates were
I created an EventListener to handle event topic org/apache/felix/webconsole/plugins/event/internal/converter/ConfigurationEventConverter/CM_UPDATED. But this is not working.
I also created a listener to implement ConfigurationListener to handle the changes. This is capturing the events but there are following issues
- Two events (CM_UPDATED, CM_LOCATION_CHANGED) are logged when any configuration is added or modified.
- No event is logged is configuration is moved.
I also observed that lastModifiedBy property has a value as sling-jcr-install and not by the person who actually modified the configuration.
Is there any way to log these changes?
Really appreciate any help on this.
Thanks,
Ritesh